diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2025-02-22 14:06:20 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2025-02-22 14:06:20 -0500 |
commit | 4221780ce53ff7484f6f1958173373dc963e7967 (patch) | |
tree | a9295bcc6161b97d33256b069ea3a5c8fe35e5ff /internal/db/schema_initialisation.go | |
parent | f36f77472a82d6ebfac153aed6d17f154ae239a6 (diff) |
functional scratch dockerfile
Diffstat (limited to 'internal/db/schema_initialisation.go')
-rw-r--r-- | internal/db/schema_initialisation.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/schema_initialisation.go b/internal/db/schema_initialisation.go index 3963786..2dfc163 100644 --- a/internal/db/schema_initialisation.go +++ b/internal/db/schema_initialisation.go @@ -88,7 +88,7 @@ var schemaDefinitions = [...]struct { // genDB creates a new database at path using the expected schema definitions. func genDB(ctx context.Context, path string) (*sql.DB, error) { - db, err := sql.Open("sqlite3", path) + db, err := sql.Open("sqlite", path+opts()) if err != nil { slog.ErrorContext(ctx, "failed to create DB", "error", err) return nil, err @@ -125,6 +125,6 @@ func genDB(ctx context.Context, path string) (*sql.DB, error) { return nil, err } - slog.InfoContext(ctx, "created new blank DB wit h valid schema", "path", path) + slog.InfoContext(ctx, "created new blank DB with valid schema", "path", path) return db, nil } |