Lightweight append-only key/value store in Go.
package main
import (
"fmt"
barrel "github.com/deepgolani4/LogVaultDB"
)
func main() {
brl, _ := barrel.Init(barrel.WithDir("./data"))
_ = brl.Put("hello", []byte("world"))
val, _ := brl.Get("hello")
fmt.Println(string(val))
}- Full runnable example:
examples/example.go
Run it:
go run ./examplesAvailable targets:
make test # run go test ./...
make fmt # gofmt all .go filescore/: database lifecycle and orchestrationutils/: storage helpers and data structures- In-memory Bloom filter speeds up negative
Getlookups