Skip to content

Commit

Permalink
Merge pull request #21 from simonsobs/db
Browse files Browse the repository at this point in the history
Require `nextline-rdb>=0.3.0`
  • Loading branch information
TaiSakuma authored Dec 14, 2023
2 parents 80e460f + 9ea6366 commit 58e7cc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ The container has one environment variable, which is to change the [DB URL](http

| Environment variable | Default value | Description |
| -------------------- | -------------------------------------------- | --------------------------------------------------------------------------------------------- |
| `NEXTLINE_DB__URL` | `sqlite:///:memory:?check_same_thread=false` | The [DB URL](https://docs.sqlalchemy.org/en/14/core/engines.html#database-urls) of SQLAlchemy |
| `NEXTLINE_DB__URL` | `sqlite+aiosqlite://` | The [DB URL](https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls) of SQLAlchemy |

For example, the following command uses a file on the host machine
`db/db.sqlite3` as the persistent DB. The directory `db/` and the file
`db.sqlite3` will be created if they don't exist.

```bash
docker run -p 8080:8000 --env NEXTLINE_DB__URL='sqlite:////db/db.sqlite3' -v "$(pwd)/db:/db" ghcr.io/simonsobs/nextline-graphql
docker run -p 8080:8000 --env NEXTLINE_DB__URL='sqlite+aiosqlite:////db/db.sqlite3' -v "$(pwd)/db:/db" ghcr.io/simonsobs/nextline-graphql
```

### from PyPI
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [
]
dependencies = [
"nextline>=0.6.2",
"nextline-rdb>=0.2.4",
"nextline-rdb>=0.3.0",
"apluggy>=0.9.8",
"dynaconf>=3.2",
"starlette>=0.31",
Expand Down

0 comments on commit 58e7cc5

Please sign in to comment.