Registry / database / xujiajun-nutsdb

xujiajun-nutsdb

JSON →
library1.1.0gogounverified

A simple, fast, embeddable, and persistent key-value store written in pure Go.

go get github.com/xujiajun/nutsdb
INSTALL
IMPORT
SIG · XUJIAJUN-NUTSDB
X
xujiajun-nutsdb
databasegov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nutsdb
github.com/xujiajun/nutsdb

Opens a NutsDB database and inserts a key-value pair.

package main import ( "github.com/xujiajun/nutsdb" ) func main() { db, _ := nutsdb.Open( nutsdb.DefaultOptions, nutsdb.WithDir("/tmp/nutsdb"), ) defer db.Close() db.Update(func(tx *nutsdb.Tx) error { return tx.Put("bucket", []byte("key"), []byte("value"), 0) }) }
Debug
Known issues
gotchaDefault options may not be suitable for production; configure Dir and EntryIdxMode explicitly.
fix
Use nutsdb.WithDir and nutsdb.WithEntryIdxMode to set proper options.
affects: *
Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
18
Meta
1
OpenAI (training)
1
Resources
xujiajun-nutsdb — go get xujiajun-nutsdb · libregistry