Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save results of pickle file into local db, e.g. use SQLite #15

Open
icaoberg opened this issue Jan 20, 2022 · 1 comment
Open

Save results of pickle file into local db, e.g. use SQLite #15

icaoberg opened this issue Jan 20, 2022 · 1 comment
Assignees

Comments

@icaoberg
Copy link
Collaborator

https://github.com/hubmapconsortium/cfde-bdbag/blob/2983e76e6b33c5a7e46c9ebed0a5265698b0ddb3/hubmapbags/magic.py#L113

  • Save entries of pickle into a local db
  • Add extra column to db called uuid
  • Do not overwrite entries if entries already exist
  • Backup database daily, that is, e.g. today it looks for 20210123.sql, if it doesn't exist, it copies/creates it.
@icaoberg
Copy link
Collaborator Author

From README.md

  1. Call hubmapbags.magic.store (see ticket 19) on every pickle file from step 2. This will save the entries in the dataframe to a local SQL db. But the trick is that we will add +1 columns to the db. The extra column should be named UUID.

@icaoberg icaoberg transferred this issue from another repository May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants