Skip to content

Commit

Permalink
Fix DB connection String
Browse files Browse the repository at this point in the history
Fix DB connection String

Signed-off-by: Davis Benny <davis.benny@intel.com>
  • Loading branch information
DukeDavis12 authored and ben-krieger committed Oct 17, 2024
1 parent bf56568 commit fd239a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlite/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type DB struct {
func New(filename, password string) (*DB, error) {
var query string
if password != "" {
query += fmt.Sprintf("&vfs=xts&_pragma=textkey(%q)", password)
query += fmt.Sprintf("?vfs=xts&_pragma=textkey(%q)", password)
}
connector, err := (&driver.SQLite{}).OpenConnector("file:" + filepath.Clean(filename) + query)
if err != nil {
Expand Down

0 comments on commit fd239a9

Please sign in to comment.