Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9cc67fa4a28c68841a9068005ae02ffcc1dfb13e2de245f8b4f9bbc39d53c5a8
md5=c9521f3e2ce86613eb3cf5814d71b4bc
Description
Kyoto Cabinet is a key-value store featuring both B+ tree and hash databases with either in-memory or on-disk persistence.
Added to opam-repository:
README
OCaml bindings for kyoto cabinet DBM
Pre-requisites
License
GNU General Public License.
Install
Using OPAM:
$ opam install kyotocabinetOr from source:
$ make # use jbuilder
$ make test
$ make installDocumentation
The API is documented in lib/kyoto.mli
Basic
#use "topfind";;
#require "kyotocabinet";;
(* create a database, here an in-memory tree database. *)
let db = Kyoto.opendb "+" [Kyoto.OWRITER; Kyoto.OCREATE];;
(* store records *)
Kyoto.set db "foo" "hop";;
Kyoto.set db "bar" "step";;
Kyoto.set db "baz" "jump";;
Kyoto.set db "baz2" "jump";;
(* retrieve records *)
Kyoto.get db "foo";;
Kyoto.get db "xoxox";;
(* update records *)
Kyoto.set db "bar" "step2";;
Kyoto.remove db "baz2";;
(* fold the whole database *)
Kyoto.fold db (fun n x -> n+1) 0;;
(* use a cursor to iter over the database *)
let cursor = Kyoto.cursor_open db;;
Kyoto.cursor_next cursor;;
Kyoto.cursor_next cursor;;
Kyoto.cursor_next cursor;;
Kyoto.cursor_next cursor;;
Kyoto.cursor_close cursor;;
(* close the database *)
Kyoto.close db;;
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building kyotocabinet with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.2 (this version) | good | good | n/a | n/a | n/a |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure