Last active
June 21, 2019 15:29
-
-
Save hadrienblanc/e76f2cd71c25d0176c636752bdfe303d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to use sqlite3 | |
``` | |
sqlite3 db/development.sqlite3 | |
``` | |
``` | |
sqlite3 db/development.sqlite3 | |
sqlite> .output dump.sql | |
sqlite> .dump | |
sqlite> .exit | |
``` | |
If we want to export it : | |
``` | |
pg_restore --verbose --host DATABASE_HOSTNAME --port DATABASE_PORT --username DATABASE_USERNAME --clean --no-acl --dbname DATABASE_NAME FILENAME | |
``` | |
source : http://www.sqlitetutorial.net/sqlite-dump/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment