From f79e653f95142642a242dbb178ab2a4626d60ed9 Mon Sep 17 00:00:00 2001 From: David Ortiz Date: Fri, 28 Feb 2025 10:37:22 +0100 Subject: [PATCH] [podman] Use sqlite3 driver --- pkg/util/podman/sqlite_db_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/podman/sqlite_db_client.go b/pkg/util/podman/sqlite_db_client.go index 87e7be2cdd1cc4..30c60fb108e99d 100644 --- a/pkg/util/podman/sqlite_db_client.go +++ b/pkg/util/podman/sqlite_db_client.go @@ -59,7 +59,7 @@ func NewSQLDBClient(dbPath string) *SQLDBClient { // Note: original function comes from https://github.com/containers/podman/blob/e71ec6f1d94d2d97fb3afe08aae0d8adaf8bddf0/libpod/sqlite_state.go#L57-L96 // It was adapted as we don't need to write any information to the DB. func (client *SQLDBClient) getDBCon() (*sql.DB, error) { - conn, err := sql.Open("sqlite", filepath.Join(client.DBPath, sqliteOptions)) + conn, err := sql.Open("sqlite3", filepath.Join(client.DBPath, sqliteOptions)) if err != nil { return nil, fmt.Errorf("opening sqlite database: %w", err) }