Inject application database contexts
This commit is contained in:
parent
859fa4a42a
commit
d7b98de56a
26 changed files with 201 additions and 63 deletions
|
|
@ -30,6 +30,9 @@ It must support circuits, device rows, project devices, drag-and-drop restructur
|
|||
directly; do not reintroduce a standalone runtime revision repository.
|
||||
- Runtime domain services receive narrow reader/store dependencies explicitly;
|
||||
concrete SQLite repositories are instantiated only under `src/server/composition`.
|
||||
- General application repositories also require an explicit `AppDatabase`;
|
||||
`src/server/composition/application-repositories.ts` owns their runtime
|
||||
instances, and controllers never import the global SQLite client.
|
||||
- The upgrade-only legacy migration service follows the same dependency rule;
|
||||
its concrete repositories are instantiated only in
|
||||
`scripts/db-migrate-legacy-consumers.ts`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue