Skip to content

Commit

Permalink
fix: use the correct sqlite driver with no CGO dep (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanchon authored Sep 12, 2024
1 parent 603045b commit 4d97f48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playground/explorer/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
var ddl string

func InitExplorerDatabase(ctx context.Context, nodeDataPath string) (*sql.DB, *Queries, error) {
db, err := sql.Open("sqlite3", nodeDataPath)
db, err := sql.Open("sqlite", nodeDataPath)
if err != nil {
return nil, nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion playground/sql/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
var ddl string

func InitDatabase(ctx context.Context, path string) (*sql.DB, error) {
db, err := sql.Open("sqlite3", path)
db, err := sql.Open("sqlite", path)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4d97f48

Please sign in to comment.