Joseph Doherty
7173a79ad7
feat(auditlog): SqliteAuditWriter schema bootstrap (#23)
Adds the site-side SqliteAuditWriter skeleton with schema bootstrap —
20-column AuditLog table + IX_SiteAuditLog_ForwardState_Occurred index +
PRAGMA auto_vacuum = INCREMENTAL — and the SqliteAuditWriterOptions
companion type. Mirrors the SiteEventLogger pattern: single owned
SqliteConnection serialised behind a write lock; the Channel-based
hot-path lands in Bundle B-T2.
Adds Microsoft.Data.Sqlite + Microsoft.Extensions.Logging.Abstractions
project refs to ScadaLink.AuditLog; adds Microsoft.Data.Sqlite +
Microsoft.Extensions.Logging.Abstractions + NSubstitute test refs.
Tests (3 new, total 13 -> 16):
- Opens_Creates_AuditLog_Table_With_20Columns_And_PK_On_EventId
- Opens_Creates_IX_ForwardState_Occurred_Index
- PRAGMA_auto_vacuum_Is_INCREMENTAL
2026-05-20 12:17:02 -04:00
..
2026-05-20 12:17:02 -04:00
2026-05-19 06:45:55 -04:00
2026-05-19 06:24:39 -04:00
2026-05-17 03:18:16 -04:00
2026-05-17 03:18:17 -04:00
2026-05-20 09:57:39 -04:00
2026-05-19 05:41:35 -04:00
2026-05-20 12:12:50 -04:00
2026-05-17 03:18:24 -04:00
2026-05-17 03:18:24 -04:00
2026-05-17 03:18:24 -04:00
2026-05-17 05:43:05 -04:00
2026-05-19 02:44:32 -04:00
2026-05-17 05:42:52 -04:00
2026-05-19 03:13:37 -04:00
2026-05-17 05:42:52 -04:00
2026-05-19 05:37:14 -04:00
2026-05-19 03:39:05 -04:00
2026-05-16 15:56:30 -04:00
2026-05-17 03:18:33 -04:00
2026-05-17 03:18:41 -04:00
2026-05-19 03:57:38 -04:00
2026-05-19 02:30:51 -04:00
2026-05-18 17:50:30 -04:00