https://github.com/andreas/ocaml-fdb
OCaml client bindings for FoundationDB
https://github.com/andreas/ocaml-fdb
fdb foundationdb ocaml
Last synced: about 1 year ago
JSON representation
OCaml client bindings for FoundationDB
- Host: GitHub
- URL: https://github.com/andreas/ocaml-fdb
- Owner: andreas
- Created: 2019-01-14T22:10:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T16:12:55.000Z (over 6 years ago)
- Last Synced: 2025-03-22T06:31:44.795Z (about 1 year ago)
- Topics: fdb, foundationdb, ocaml
- Language: OCaml
- Size: 46.9 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
OCaml client bindings for FoundationDB
--------------------------------------
Client bindings for [FoundationDB](http://foundationdb.org/) based on `libfdb` and [`ctypes`](https://github.com/ocamllabs/ocaml-ctypes). Essentially it's a fairly small shim around `libfdb`, which adds type safety and adapts the concepts of "futures" from FDB to to a user-provided IO monad (probably Lwt or Async).
## Requirements
Installing `libfdb` ([download here](https://www.foundationdb.org/download/)) is a requirement for installing or building this library.
## Install
This package is not available on OPAM yet, but in the meantime you can install it in the following manner:
```
opam pin add fdb git://github.com/andreas/ocaml-fdb.git
```
## Build
```
dune build
```
## Test
```
dune runtest
```
## Example
See [`examples/test_lwt.ml`](https://github.com/andreas/ocaml-fdb/blob/master/test/test_lwt.ml).