From d00726dd001009df9f7d610ac665f3947ad04246 Mon Sep 17 00:00:00 2001 From: Charles VAN GOETHEM Date: Tue, 6 Aug 2024 12:00:29 +0200 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a6e81a3..13fc2df 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + # SEAL db - Simple, Efficient And Lite database for NGS ![seal.gif](docs/img/seal.gif) @@ -141,19 +142,33 @@ Here are some useful *Tips & Tricks* working with SEAL: flask --app seal --debug db migrate -m "message" flask --app seal --debug db upgrade ``` + - Start/Stop the datatabase server ```bash pg_ctl -D ${PWD}/seal/seal.db -l ${PWD}/seal/seal.db.log start pg_ctl -D ${PWD}/seal/seal.db -l ${PWD}/seal/seal.db.log stop ``` + - Dump/Restore the database ```bash pg_dump -O -C --if-exists --clean --inserts -d seal -x -F t -f seal.tar pg_restore -x -f seal.tar ``` +- Multiple instances of SEAL (maybe usefull for differents projects, teams, tests, stages...) + +*Edit the config.yaml* +```yaml + SQLALCHEMY_DATABASE_URI: 'postgresql:///seal-bis' +``` +*Follow the [initialization steps](#initialization-of-the-database) with this new database (edit this ommand)* +```bash +psql postgres -c "CREATE DATABASE seal-bis;" +``` + + # License GNU General Public License v3.0 or later -See [COPYING](COPYING) to see the full text. \ No newline at end of file +See [COPYING](COPYING) to see the full text.