Skip to content

Commit

Permalink
[podman] Use sqlite3 driver (#34564)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidor authored Mar 6, 2025
1 parent 708f89a commit 5d3579e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/podman/sqlite_db_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 5d3579e

Please sign in to comment.