foundationdb/bindings/go
Xin Dong 353fcb2096 Update Go binding documentations for the new API to be consistent with others 2020-03-25 10:02:38 -07:00
..
bench bindings/go: use binary.LittleEndian.PutUint64 instead of binary.Write 2019-05-06 15:48:28 -05:00
godoc-resources Initial repository commit 2017-05-25 13:48:44 -07:00
src Update Go binding documentations for the new API to be consistent with others 2020-03-25 10:02:38 -07:00
CMakeLists.txt several minor bug fixes 2019-02-15 00:01:42 -08:00
README.md Update API version to 700 2020-01-30 09:26:27 -08:00
fdb-go-install.sh fixup! fixup! fixup! fixup! Add support for modules 2019-02-12 11:27:43 -08:00
go.mod Add support for modules 2019-02-12 11:27:43 -08:00
include.mk Updates the format of the generated go file so that it passes our format check. 2018-04-06 11:33:54 -07:00

README.md

fdb-go

Go language bindings for FoundationDB, a distributed key-value store with ACID transactions.

This package requires:

Use of this package requires the selection of a FoundationDB API version at runtime. This package currently supports FoundationDB API versions 200-700.

To install this package, you can run the "fdb-go-install.sh" script (for versions 5.0.x and greater):

./fdb-go-install.sh install --fdbver <x.y.z>

The "install" command of this script does not depend on the presence of the repo in general and will download the repository into your local go path. Running "localinstall" instead of "install" will use the local copy here (with a symlink) instead of downloading from the remote repository.

You can also build this package, in the top level of this repository run:

make fdb_go

This will create binary packages for the appropriate platform within the "build" subdirectory of this folder.

Documentation

Modules

If you used the bindings with modules before the addition of the go.mod file in the foundation repo, it may be necessary to update the import path in your go.mod.

By default, a module enabled go get will add something like this to your go.mod:

github.com/apple/foundationdb vx.x.x-xxxxxxxxxxxxxx-xxxxxxxxxxxx

You will need to delete that line, then run go get github.com/apple/foundationdb/bindings/go@version. You should now have a line like this in your go.mod:

github.com/apple/foundationdb/bindings/go vx.x.x-xxxxxxxxxxxxxx-xxxxxxxxxxxx

Note: @version is only necessary if you previously locked to a specific version or commit, in which case you'd replace version with a commit hash or tag.