Skip to content

Commit

Permalink
Install the json extension in Go
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyang01 committed Sep 4, 2024
1 parent 11d592a commit 2b2afcd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions meta/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ func NewDBProvider(dataDir, dbFile string) (*DbProvider, error) {
if err != nil {
return nil, err
}
// load json extension
_, err = storage.Exec("load json")

// install the json extension
_, err = storage.Exec("INSTALL json")
if err != nil {
return nil, err
}
// load the json extension
_, err = storage.Exec("LOAD json")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2b2afcd

Please sign in to comment.