Registry / database / etcd-io-bbolt

etcd-io-bbolt

JSON →
library1.4.3gogounverified

A low-level key/value store in pure Go, originally a fork of BoltDB.

go get github.com/etcd-io/bbolt
INSTALL
IMPORT
SIG · ETCD-IO-BBOLT
E
etcd-io-bbolt
databasegov1.4.3
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.

bbolt
github.com/etcd-io/bbolt

Open a BoltDB database and store a key-value pair

package main import ( "fmt" "github.com/etcd-io/bbolt" ) func main() { db, _ := bbolt.Open("my.db", 0600, nil) defer db.Close() db.Update(func(tx *bbolt.Tx) error { b, _ := tx.CreateBucket([]byte("MyBucket")) return b.Put([]byte("key"), []byte("value")) }) fmt.Println("Data stored") }
Debug
Known issues
gotchabbolt does not support concurrent write transactions; only one write transaction can be active at a time.
fix
Ensure write transactions are serialized or use read-only transactions for reads.
affects: >=0.0.0
Upgrade
Version history
1.4.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Resources
etcd-io-bbolt — go get etcd-io-bbolt · libregistry