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
cli: implement db create/drop
for sqlite3
#351
Conversation
Yeah, I can reproduce this, A workaround is using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no test written for this.
@nathanj Yeah, please add some test for |
I added a test to |
@nathanj you can add the specs in |
When running `amber db create` for an sqlite3 database, amber displays the error: could not determine database name This can be confusing to the user who doesn't know that `amber db create` does not need to be run for sqlite3 databases. Display a friendlier message. Also implement `amber db drop` to delete the database.
Moved the tests and made them a little more spec-like I think (this is my first time using spec). |
@nathanj Thank you we were just talking about your PR 🎉 |
When running `amber db create` for an sqlite3 database, amber displays the error: could not determine database name This can be confusing to the user who doesn't know that `amber db create` does not need to be run for sqlite3 databases. Display a friendlier message. Also implement `amber db drop` to delete the database.
When running `amber db create` for an sqlite3 database, amber displays the error: could not determine database name This can be confusing to the user who doesn't know that `amber db create` does not need to be run for sqlite3 databases. Display a friendlier message. Also implement `amber db drop` to delete the database. Former-commit-id: 3253ec9
When running
amber db create
for an sqlite3 database, amber displaysthe error:
could not determine database name
This can be confusing to the user who doesn't know that
amber db create
does not need to be run for sqlite3 databases. Display afriendlier message.
Also implement
amber db drop
to delete the database.