You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
P1: every repo, route, scheduler path and test now speaks one async DB interface (all/get/run/exec/transaction). better-sqlite3 stays underneath for dev/tests via SqliteDb (statement cache, manual BEGIN/SAVEPOINT nesting); openDb stays sync so fixtures remain one-liners. Zero behavior change: 346/346 tests, typecheck clean. P2: migrations-pg.ts — numbered Postgres migration set (001-init: bigint paise, integer flags, TEXT ISO dates, TEXT JSON; reminder CHECK born in final widened form) + schema_migrations runner. P3: db-pg.ts — pg Pool behind the same interface: ?->$n rewrite outside string literals, transactions pinned to one pooled client via AsyncLocalStorage with savepoint nesting, int8/numeric parsed to JS numbers so paise math is identical on both engines. Also: reminder upsert INSERT OR IGNORE -> ON CONFLICT DO NOTHING (portable, same changes-count semantics). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
4 days ago | |
|---|---|---|
| .. | ||
| scripts | 4 days ago | |
| src | 4 days ago | |
| test | 4 days ago | |
| .env.example | 1 week ago | |
| build-server.mjs | 2 weeks ago | |
| package.json | 4 days ago | |
| schema.sql | 2 weeks ago | |
| tsconfig.json | 2 weeks ago | |