feat(persistence): initialize SQLite database module

- Add domain types: RelayId newtype and RepositoryError enum
- Implement SqliteRelayLabelRepository with in-memory test support
- Create relay_labels migration with SQLx compile-time verification
- Add comprehensive integration test suite (266 lines)

Ref: T006 (specs/001-modbus-relay-control)
This commit is contained in:
2026-01-01 17:35:58 +01:00
parent d8a7ed5d29
commit 6903d76682
12 changed files with 389 additions and 1 deletions

1
Cargo.lock generated
View File

@@ -2640,6 +2640,7 @@ dependencies = [
"serde",
"serde_json",
"sqlx",
"tempfile",
"thiserror",
"tokio",
"tokio-modbus",