From 5dd10f78b1638d3579db1927a2eb34dae32cea30 Mon Sep 17 00:00:00 2001 From: Mathieu Imfeld Date: Sun, 11 May 2025 16:10:30 +0200 Subject: [PATCH 1/2] Defaulting to an in-memory database --- var/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/helm/values.yaml b/var/helm/values.yaml index d488153..5cd0283 100644 --- a/var/helm/values.yaml +++ b/var/helm/values.yaml @@ -25,4 +25,4 @@ route: namespace: edge config: - db_url: "sqlite:///data/db.sqlite" + db_url: "sqlite:///" From 40df59b6840f8e418f9fe8e1caa8c27dbbbfb049 Mon Sep 17 00:00:00 2001 From: Mathieu Imfeld Date: Sun, 11 May 2025 16:10:54 +0200 Subject: [PATCH 2/2] Cosmetic changes --- README.md | 2 +- src/mrmat_python_api_fastapi/apis/platform/v1/db.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 79ee8df..d69d20d 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Create a virtual environment, then: ```shell (venv) $ pip install -r requirements.txt -(venv) $ python python -m build -n --wheel +(venv) $ python -m build -n --wheel ``` If you intend to run the testsuite or work on the code, then also install the requirements from `requirements.dev.txt`. You can run the testsuite using diff --git a/src/mrmat_python_api_fastapi/apis/platform/v1/db.py b/src/mrmat_python_api_fastapi/apis/platform/v1/db.py index 4452a85..36c7739 100644 --- a/src/mrmat_python_api_fastapi/apis/platform/v1/db.py +++ b/src/mrmat_python_api_fastapi/apis/platform/v1/db.py @@ -20,8 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -import uuid -from sqlalchemy import ForeignKey, String, UniqueConstraint, UUID +from sqlalchemy import ForeignKey, String, UniqueConstraint from sqlalchemy.orm import relationship, Mapped, mapped_column from mrmat_python_api_fastapi import ORMBase