Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Char-Al authored Aug 6, 2024
1 parent bc13945 commit d00726d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# SEAL db - Simple, Efficient And Lite database for NGS

![seal.gif](docs/img/seal.gif)
Expand Down Expand Up @@ -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.
See [COPYING](COPYING) to see the full text.

0 comments on commit d00726d

Please sign in to comment.