<feed xmlns='http://www.w3.org/2005/Atom'>
<title>home-sveltekit/src/lib/server/services/index.ts, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.kagamino.dev/home-sveltekit/atom?h=main</id>
<link rel='self' href='https://git.kagamino.dev/home-sveltekit/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.kagamino.dev/home-sveltekit/'/>
<updated>2026-10-18T20:22:55Z</updated>
<entry>
<title>refactor: inject the database into every service</title>
<updated>2026-10-18T20:22:55Z</updated>
<author>
<name>Martin Kagamino Lehoux</name>
<email>martin@lehoux.net</email>
</author>
<published>2026-10-18T20:22:55Z</published>
<link rel='alternate' type='text/html' href='https://git.kagamino.dev/home-sveltekit/commit/?id=4efed80a2f8dc238b420eadf97d56c3eccaadb76'/>
<id>urn:sha1:4efed80a2f8dc238b420eadf97d56c3eccaadb76</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>refactor: inject the database into services via a constructor</title>
<updated>2026-10-18T20:02:02Z</updated>
<author>
<name>Martin Kagamino Lehoux</name>
<email>martin@lehoux.net</email>
</author>
<published>2026-10-18T20:02:02Z</published>
<link rel='alternate' type='text/html' href='https://git.kagamino.dev/home-sveltekit/commit/?id=0685e9ece66fbcb09c9457027cf7bb2107cc0171'/>
<id>urn:sha1:0685e9ece66fbcb09c9457027cf7bb2107cc0171</id>
<content type='text'>
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.
</content>
</entry>
</feed>
