You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LibraDB is a simple, persistent key/value store written in pure Go. The project aims to provide a working yet simple
example of a working database. If you're interested in databases, I encourage you to start here.
This database accompanies my blog post on how to write a database from scratch.
Installing
To start using LibraDB, install Go and run go get:
Read-only and read-write transactions are supported. LibraDB allows multiple read transactions or one read-write
transaction at the same time. Transactions are goroutine-safe.
LibraDB has an isolation level: Serializable.
In simpler words, transactions are executed one after another and not at the same time.This is the highest isolation level.
Collections are a grouping of key-value pairs. Collections are used to organize and quickly access data as each
collection is B-Tree by itself. All keys in a collection must be unique.
Key/value pairs reside inside collections. CRUD operations are possible using the methods Collection.PutCollection.FindCollection.Remove as shown below.