Epic: #194
Source: docs/planned-0.4.5.md
Goal
Implement the core SQLite database connection driver wrapping sqflite_common_ffi and SqliteService to manage active connection handles to local database files.
Files
lib/core/database/drivers/sqlite/sqlite_connection.dart (new)
lib/core/database/drivers/sqlite/sqlite_service.dart (new)
test/core/database/drivers/sqlite/sqlite_connection_test.dart (new)
Implementation
- Initialize
sqfliteFfiInit() if running on desktop (Linux/Windows/macOS) in SqliteService.
- Implement
SqliteConnection class which inherits from the base Connection interface.
- Implement
SqliteService to open/close connection handles, execute queries, and handle read-only mode safety constraint.
- Map SQLite result rows to the standard Querya database result structure.
Acceptance Criteria
Epic: #194
Source:
docs/planned-0.4.5.mdGoal
Implement the core SQLite database connection driver wrapping
sqflite_common_ffiandSqliteServiceto manage active connection handles to local database files.Files
lib/core/database/drivers/sqlite/sqlite_connection.dart(new)lib/core/database/drivers/sqlite/sqlite_service.dart(new)test/core/database/drivers/sqlite/sqlite_connection_test.dart(new)Implementation
sqfliteFfiInit()if running on desktop (Linux/Windows/macOS) inSqliteService.SqliteConnectionclass which inherits from the baseConnectioninterface.SqliteServiceto open/close connection handles, execute queries, and handle read-only mode safety constraint.Acceptance Criteria
SqliteConnectioninitializes successfully for local files.flutter analyze.