forestdb
CategoryDatabase Drivers
SubcategoryNoSQL Database Drivers
Stars0
Go bindings for ForestDB
About forestdb
goforestdb
Go bindings for ForestDB
Building
- Obtain and build forestdb: https://github.com/couchbaselabs/forestdb (run
make installto install the library) - Install header files to system location
- On Ubuntu 14.04:
cd <forestdb_project_dir> && mkdir /usr/local/include/libforestdb && cp include/libforestdb/* /usr/local/include/libforestdb go get -u -v -t github.com/couchbase/goforestdb
Documentation
See godocs
Sample usage (without proper error handling):
// Open a database
db, _ := Open("test", nil)
// Close it properly when we're done
defer db.Close()
// Store the document
doc, _ := NewDoc([]byte("key"), nil, []byte("value"))
defer doc.Close()
db.Set(doc)
// Lookup the document
doc2, _ := NewDoc([]byte("key"), nil, nil)
defer doc2.Close()
db.Get(doc2)
// Delete the document
doc3, _ := NewDoc([]byte("key"), nil, nil)
defer doc3.Close()
db.Delete(doc3)
Frequently Asked Questions
What is forestdb?
forestdb is a Database Drivers library for the Go programming language. Go bindings for ForestDB
How do I install forestdb?
Install forestdb with the Go module system using `go get couchbase/goforestdb`. Check the repository for the current installation instructions.
What category does forestdb belong to?
forestdb is listed under Database Drivers, specifically NoSQL Database Drivers.