Skip to main content

Module shell

Module shell 

Source
Expand description

my-app db:shell: a small SQL prompt on the app’s database, so neither sqlite3 nor psql is needed (on servers or Windows).

Statements end with ; and may span lines. .tables lists tables and .quit (or end of input) leaves. Input can be piped: echo "SELECT count(*) FROM users;" | my-app db:shell.