Implement session and system tests

This commit is contained in:
2024-11-25 21:44:43 +01:00
parent 9ac047d440
commit 32bd202d6f
9 changed files with 520 additions and 10 deletions

View File

@@ -108,6 +108,11 @@ func Init(dbPath string, secretsService secrets.Service) (Database, error) {
return nil, err
}
// Enable foreign keys for this connection
if _, err := db.Exec("PRAGMA foreign_keys = ON"); err != nil {
return nil, err
}
database := &database{
DB: db,
secretsService: secretsService,