fix(db): open sqlite with correct driver
This commit is contained in:
parent
b0c8aa284e
commit
3b320cd7d3
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ package sqlite
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/ihexxa/quickshare/src/db"
|
"github.com/ihexxa/quickshare/src/db"
|
||||||
|
@ -17,7 +16,7 @@ type SQLite struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewSQLite(dbPath string) (*SQLite, error) {
|
func NewSQLite(dbPath string) (*SQLite, error) {
|
||||||
db, err := sql.Open("sqlite3", fmt.Sprintf("%s?_sync=FULL&_vacuum=incremental", dbPath))
|
db, err := sql.Open("sqlite", dbPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue