feat: change db to buntdb
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
"os"
|
||||
|
||||
"gitea.com/logicamp/lc"
|
||||
"github.com/dgraph-io/badger/v4"
|
||||
api "github.com/logi-camp/go-flink-client"
|
||||
"github.com/tidwall/buntdb"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@@ -19,7 +19,9 @@ func main() {
|
||||
|
||||
crd.New()
|
||||
|
||||
db, err := badger.Open(badger.DefaultOptions("./db"))
|
||||
// create database instance
|
||||
db, err := buntdb.Open("./bunt.db")
|
||||
|
||||
if err != nil {
|
||||
lc.Logger.Fatal("[main] error on open db", zap.Error(err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user