Browse Source

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 6 tháng trước cách đây
mục cha
commit
e0c1abc5fe
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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
 }