Explorar o código

fix(sqlite): apply options (#10049)

@calmh it seems `sqlite.Open` forgets to apply options supplied to it
(currently only the delete retention interval).
Tommy van der Vorst hai 6 meses
pai
achega
e0c1abc5fe
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      internal/db/sqlite/db_open.go

+ 4 - 0
internal/db/sqlite/db_open.go

@@ -65,6 +65,10 @@ func Open(path string, opts ...Option) (*DB, error) {
 		folderDBOpener: openFolderDB,
 	}
 
+	for _, opt := range opts {
+		opt(db)
+	}
+
 	return db, nil
 }