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

Idea: Retrieve individual tables from a database #1

Open
justinclift opened this issue Feb 17, 2019 · 0 comments
Open

Idea: Retrieve individual tables from a database #1

justinclift opened this issue Feb 17, 2019 · 0 comments

Comments

@justinclift
Copy link
Member

Today's updates for dio added support for modern DBHub.io, rather than the initial concept version.

The current pull command retrieves a database. eg:

$ dio pull 2.5mbv3.sqlite
Database '2.5mbv3.sqlite' downloaded.  Size: 2,666,496 bytes

It could be useful to have it allow for retrieving of individual tables too. Not sure what format though (CSV? JSON? single table SQLite file?). Having CSV as the default due to it's widespread use, but allowing others --format json might be the way to go.

$ dio pull 2.5mbv3.sqlite uniques
Database: '2.5mbv3.sqlite', table 'uniques' downloaded as '2.5mbv3-uniques.csv'.
Size: 100,000 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant