Database abstraction with SQLite + Postgres parity #8
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every DB call goes through this layer. The same code must run unchanged against SQLite (self-hoster default) and Postgres (heavier deployments).
Scope
DATABASE_URLor aDATABASE_ENGINE+ per-engine vars). Pick one approach and stick to it.db/entities/. DTOs (API payload shape) live inlib/dto/. No leakage either direction.Acceptance criteria
db/README.mdcovers: adding a migration, adding an entity, adding a DTO mapping.Out of scope
Part of epic #1. Depends on #7.