From edc8d94762f73d68e2361bf39bf97d4be07e3316 Mon Sep 17 00:00:00 2001 From: Adam Eivy Date: Tue, 25 Aug 2026 17:36:27 +0000 Subject: [PATCH] feat: add PostgreSQL query foundation (#148) --- .changelog/NEXT.md | 1 + docs/development.md | 29 + ecosystem.config.cjs | 5 +- package-lock.json | 160 ++++++ server/package.json | 4 +- server/src/db/postgres-schema.sql | 600 ++++++++++++++++++++ server/src/db/postgres.service.ts | 346 +++++++++++ tests/integration/db/postgresSchema.spec.ts | 89 +++ tests/unit/db/postgresService.spec.ts | 186 ++++++ 9 files changed, 1418 insertions(+), 2 deletions(-) create mode 100644 server/src/db/postgres-schema.sql create mode 100644 server/src/db/postgres.service.ts create mode 100644 tests/integration/db/postgresSchema.spec.ts create mode 100644 tests/unit/db/postgresService.spec.ts diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md index 77a969d7..64db6f7b 100644 --- a/.changelog/NEXT.md +++ b/.changelog/NEXT.md @@ -14,6 +14,7 @@ ## Internal +- **[issue-148] PostgreSQL query-store foundation** — Added a packaged PostgreSQL schema and lazy async connection layer with transactional initialization, health checks, and named parameters, while leaving the current SQLite/JSON runtime unchanged until the staged migration completes. - Provider comparison cards no longer emit an invalid nested-`