Registry / database / coreos-bbolt

coreos-bbolt

JSON →
library1.4.3gogounverified

Package bbolt implements a low-level key/value store in pure Go.

go get github.com/coreos/bbolt
INSTALL
IMPORT
SIG · COREOS-BBOLT
C
coreos-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.

bolt
github.com/coreos/bbolt

Opens a BoltDB database, creates a bucket, and stores a key-value pair.

package main import ( "fmt" "github.com/coreos/bbolt" ) func main() { db, _ := bolt.Open("my.db", 0600, nil) defer db.Close() db.Update(func(tx *bolt.Tx) error { b, _ := tx.CreateBucket([]byte("MyBucket")) return b.Put([]byte("key"), []byte("value")) }) fmt.Println("Key-value stored") }
Debug
Known issues
breakingThis package is deprecated in favor of go.etcd.io/bbolt
fix
Replace import with go.etcd.io/bbolt
affects: >=1.4.0
Upgrade
Version history
1.4.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
8
OpenAI (training)
1
Resources