tag | 78cf902808aed5ee1679ff07ac85bd978de10cc7 | |
---|---|---|
tagger | Robert Newson <rnewson@apache.org> | Wed Apr 01 15:52:47 2020 +0100 |
object | 5396535067c99b45b22cf915d3b67961c2a68aad |
1.0.0 - First stable release
commit | 5396535067c99b45b22cf915d3b67961c2a68aad | [log] [tgz] |
---|---|---|
author | Kyle Snavely <kjsnavely@gmail.com> | Fri Mar 27 12:47:01 2020 -0400 |
committer | GitHub <noreply@github.com> | Fri Mar 27 12:47:01 2020 -0400 |
tree | 6542b48d1eb9a38710e6ad27d71abb6640af25af | |
parent | 6f59a39f4fd52a05c470545913c2a81fdd80f6d1 [diff] | |
parent | 1e622748cce436fca993f696e59f624d5e59d484 [diff] |
Merge pull request #17 from cloudant-labs/encode-lists-like-binaries erlfdb_tuple:encode/2 should handle lists through binary conversion
This project is a NIF wrapper for the FoundationDB C API. Documentation on the main API can be found here.
This project also provides a conforming implementation of the Tuple and Directory layers.
Assuming you have installed the FoundationDB C API library, building erlfdb is as simple as:
$ make
Alternatively, adding erlfdb as a rebar dependency should Just Work ®.
Documentation for installing FoundationDB can be found here for macOS or here for Linux.
A simple example showing how to open a database and read and write keys:
Eshell V9.3.3.6 (abort with ^G) 1> Db = erlfdb:open(<<"/usr/local/etc/foundationdb/fdb.cluster">>). {erlfdb_database,#Ref<0.2859661758.3941466120.85406>} 2> ok = erlfdb:set(Db, <<"foo">>, <<"bar">>). ok 3> erlfdb:get(Db, <<"foo">>). <<"bar">> 4> erlfdb:get(Db, <<"bar">>). not_found
FoundationDB has a custom binding tester that can be used to test whether changes have broken compatibility. See the BINDING_TESTER documentation for instructions on building and running that system.