···
<para><emphasis>Maintainer:</emphasis> Austin Seipp</para>
15
-
<para><emphasis>Available version(s):</emphasis> 5.1.x</para>
15
+
<para><emphasis>Available version(s):</emphasis> 5.1.x, 5.2.x, 6.0.x</para>
<para>FoundationDB (or "FDB") is a distributed, open source, high performance,
transactional key-value store. It can store petabytes of data and deliver
···
services.foundationdb.enable = true;
29
-
services.foundationdb.package = pkgs.foundationdb51; # FoundationDB 5.1.x
29
+
services.foundationdb.package = pkgs.foundationdb52; # FoundationDB 5.2.x
···
73
+
<para>You can also now write programs using the available client libraries.
74
+
For example, the following Python program can be run in order to grab the cluster status,
75
+
as a quick example. (This example uses <command>nix-shell</command> shebang
76
+
support to automatically supply the necessary Python modules).
79
+
a@link> cat fdb-status.py
80
+
#! /usr/bin/env nix-shell
81
+
#! nix-shell -i python -p python pythonPackages.foundationdb52
83
+
from __future__ import print_function
89
+
fdb.api_version(520)
94
+
return str(tr['\xff\xff/status/json'])
96
+
obj = json.loads(get_status(db))
97
+
print('FoundationDB available: %s' % obj['client']['database_status']['available'])
99
+
if __name__ == "__main__":
101
+
a@link> chmod +x fdb-status.py
102
+
a@link> ./fdb-status.py
103
+
FoundationDB available: True