Most developers reach for Redis or BoltDB by default. But if you need:
db, _ := crocdb.Open("data.db", 0600) defer db.Close() db.Update(func(tx *crocdb.Tx) error { tx.Set([]byte("user:1"), []byte("Alice")) return nil })
π
β (pure Go) β Embeddable (no separate server process) β ACID transactions on a single file β Simple key-value API
An embedded key-value store inspired by BoltDB but simpler. Data is stored in a single .db file with B-tree indexing. is crocdb
β A distributed database β Suitable for high write throughput β Meant for multi-terabyte datasets
#golang #database #opensource #crocdb
Have you tried it? Whatβs your go-to embedded DB?
Log in with a social media account to set up a profile. You can change your nickname later.
You can toggle selected features and styles per device/browser to boost performance. Some options may not be available.