From b35c8cca57811050536a4fa6c1cb5675453ad463 Mon Sep 17 00:00:00 2001 From: Mikkel Thestrup Date: Tue, 27 Jan 2026 17:07:13 +0100 Subject: 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 --- src/infrastructure/mod.rs | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/infrastructure/mod.rs (limited to 'src/infrastructure/mod.rs') diff --git a/src/infrastructure/mod.rs b/src/infrastructure/mod.rs new file mode 100644 index 0000000..c93e4ff --- /dev/null +++ b/src/infrastructure/mod.rs @@ -0,0 +1 @@ +pub mod persistence; -- cgit v1.2.3-70-g09d2