Skip to content

Instantly share code, notes, and snippets.

@hadrienblanc
Last active June 21, 2019 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadrienblanc/e76f2cd71c25d0176c636752bdfe303d to your computer and use it in GitHub Desktop.
Save hadrienblanc/e76f2cd71c25d0176c636752bdfe303d to your computer and use it in GitHub Desktop.
# 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