diff options
| author | Mikkel Thestrup <mikkel@mithe.dk> | 2026-01-27 17:07:13 +0100 |
|---|---|---|
| committer | Mikkel Thestrup <mikkel@mithe.dk> | 2026-01-27 17:08:24 +0100 |
| commit | b35c8cca57811050536a4fa6c1cb5675453ad463 (patch) | |
| tree | 622bce9ef4021701ab845fd88ff0fc86b47905aa /migrations | |
| parent | 4e78fd83349c95711cdee5acc56f248f81ebd25c (diff) | |
| download | kal-b35c8cca57811050536a4fa6c1cb5675453ad463.tar.gz kal-b35c8cca57811050536a4fa6c1cb5675453ad463.zip | |
feat(infrastructure): implement SQLite persistence layer for calendar domain
Add infrastructure layer with SQLite repositories for
calendars, events, and recurring events. Implements the repository
pattern with proper domain/infrastructure separation.
- Add CalendarModel, EventModel, RecurrenceModel, and RecurrenceExceptionModel
for database persistence
- Implement SqliteCalendarRepository with CRUD operations
- Implement SqliteEventRepository with calendar filtering and time range queries
- Implement SqliteRecurringEventRepository with exception handling and transactions
- Add bidirectional mappers between domain entities and persistence models
- Use sqlx query_as for type-safe database queries with FromRow derivation
- Support upsert operations for all entities using ON CONFLICT clauses
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions