aboutsummaryrefslogtreecommitdiff
path: root/src/lib/server/services/index.ts
Commit message (Collapse)AuthorAge
* refactor: inject the database into every servicemainMartin Kagamino Lehoux16 hours
| | | | | | | Groceries, projects, references and routines become classes holding the Drizzle handle, wired once in services/index.ts alongside categories. Tests build their own instance on an in-memory database. Drops the unused projects.loadAll and projects.rename.
* refactor: inject the database into services via a constructorMartin Kagamino Lehoux16 hours
Pilot on the categories service: a CategoriesService class holds the Drizzle handle, and services/index.ts wires the real instance once for the server while tests build their own on an in-memory database. AppDatabase moves from groceries.ts to db/types.ts.