GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - couchbase/goforestdb: Go bindings for ForestDB

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

69 Commits
69 Commits

Folders and files

NameName
Last commit message
Last commit date
examples/custom_comparator
examples/custom_comparator
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cgo.go
cgo.go
 
 
cgo_static.go
cgo_static.go
 
 
commit.go
commit.go
 
 
commit_test.go
commit_test.go
 
 
config.go
config.go
 
 
doc.go
doc.go
 
 
docs.go
docs.go
 
 
error.go
error.go
 
 
file.go
file.go
 
 
file_test.go
file_test.go
 
 
forestdb.go
forestdb.go
 
 
forestdb_test.go
forestdb_test.go
 
 
info.go
info.go
 
 
info_test.go
info_test.go
 
 
iterator.go
iterator.go
 
 
iterator_test.go
iterator_test.go
 
 
kv.go
kv.go
 
 
kv_test.go
kv_test.go
 
 
kvbatch.go
kvbatch.go
 
 
kvbatch_test.go
kvbatch_test.go
 
 
log.go
log.go
 
 
log.h
log.h
 
 
log_test.go
log_test.go
 
 
pool.go
pool.go
 
 
pool_test.go
pool_test.go
 
 
snapshot_marker.go
snapshot_marker.go
 
 
snapshot_marker_test.go
snapshot_marker_test.go
 
 
tx.go
tx.go
 
 
tx_test.go
tx_test.go
 
 

Repository files navigation

goforestdb

Go bindings for ForestDB

Building

  1. Obtain and build forestdb: https://github.com/couchbaselabs/forestdb (run make install to install the library)
  2. Install header files to system location
  3. On Ubuntu 14.04: cd <forestdb_project_dir> && mkdir /usr/local/include/libforestdb && cp include/libforestdb/* /usr/local/include/libforestdb
  4. 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)

About

Go bindings for ForestDB

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

36 stars

Watchers

35 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.