feat: change db to buntdb

This commit is contained in:
2024-11-30 21:08:06 +03:30
parent 412a5292cb
commit d8b87ac6ee
6 changed files with 345 additions and 93 deletions

View File

@@ -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))
}