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

Add .save command #311

Closed
asdine opened this issue Nov 2, 2020 · 2 comments · Fixed by #314
Closed

Add .save command #311

asdine opened this issue Nov 2, 2020 · 2 comments · Fixed by #314
Assignees
Labels
cli Command line enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@asdine
Copy link
Collaborator

asdine commented Nov 2, 2020

Add .save command to Genji CLI

Synopsis: .save ?badger? PATH

Description: Write database into PATH

Usage:

# run in memory database
genji
# or on-disk database
genji my.db
genji> CREATE TABLE foo;
genji> INSERT INTO foo(a) VALUES (1);
genji> .save foo.db
genji> .save badger foo 
$ ls
my.db foo.db foo/

Calling .save on an existing database file or path overwrites it.

@asdine asdine added enhancement New feature or request good first issue Good for newcomers cli Command line labels Nov 2, 2020
@asdine
Copy link
Collaborator Author

asdine commented Nov 3, 2020

cc @jhchabran, pinging you so I can assign you

@jhchabran
Copy link
Collaborator

You can assign me now 👍

@asdine asdine added this to the v0.10.0 milestone Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command line enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants