fix(sqlite): apply options (#10049)
@calmh it seems `sqlite.Open` forgets to apply options supplied to it (currently only the delete retention interval).
This commit is contained in:
@@ -65,6 +65,10 @@ func Open(path string, opts ...Option) (*DB, error) {
|
|||||||
folderDBOpener: openFolderDB,
|
folderDBOpener: openFolderDB,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, opt := range opts {
|
||||||
|
opt(db)
|
||||||
|
}
|
||||||
|
|
||||||
return db, nil
|
return db, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user