From 13f9d0f1a21339a5f8539fd98722d187b825e087 Mon Sep 17 00:00:00 2001 From: Tai Sakuma Date: Thu, 14 Dec 2023 11:07:44 -0500 Subject: [PATCH 1/2] Replace the DB URL in README.md with an async one --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a362ea2..bf12292 100644 --- a/README.md +++ b/README.md @@ -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 From 9ea636611c741fcbb470284253b5a3628ba195de Mon Sep 17 00:00:00 2001 From: Tai Sakuma Date: Thu, 14 Dec 2023 14:57:55 -0500 Subject: [PATCH 2/2] Require nextline-rdb>=0.3.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c9b65f5..6305d63 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",