go

module
v0.0.0-...-cddbc58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: Apache-2.0

README

fdb-go

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

This package requires:

  • Go 1.22+ with CGO enabled
  • FoundationDB client package (can be installed from the release). It's recommended to install the matching client package for the FDB version you want to use.

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

Documentation

Modules

In your go project with modules run the following command to get/update the required FDB version:

# Example for FDB 7.3.63 bindings
go get github.com/apple/foundationdb/bindings/go@7.3.63

This will add or update the bindings entry in your go.mod file like this:

github.com/apple/foundationdb/bindings/go v0.0.0-20250221231555-5140696da2df

Note: @version should match the major and minor of the FDB version you want to use, e.g. all 7.3 bindings will work for an FDB cluster in the 7.3 version.

Developing

You can 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.

Directories

Path Synopsis
src
_stacktester command
_util command
fdb
Package fdb provides an interface to FoundationDB databases (version 2.0 or higher).
Package fdb provides an interface to FoundationDB databases (version 2.0 or higher).
fdb/directory
Package directory provides a tool for managing related subspaces.
Package directory provides a tool for managing related subspaces.
fdb/subspace
Package subspace provides a convenient way to use FoundationDB tuples to define namespaces for different categories of data.
Package subspace provides a convenient way to use FoundationDB tuples to define namespaces for different categories of data.
fdb/tuple
Package tuple provides a layer for encoding and decoding multi-element tuples into keys usable by FoundationDB.
Package tuple provides a layer for encoding and decoding multi-element tuples into keys usable by FoundationDB.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL