Module Mongoc

Binding of the MongoDB C client library, libmongoc

val init : unit -> unit

Initialize the MongoDB C Driver by calling init exactly once at the beginning of your program. It is responsible for initializing global state such as process counters, SSL, and threading primitives.

val cleanup : unit -> unit

Call cleanup exactly once at the end of your program to release all memory and other resources allocated by the driver. You must not call any other MongoDB C Driver functions after cleanup. Note that init does not reinitialize the driver after cleanup.

val get_version : unit -> string
val get_major_version : unit -> int
val get_minor_version : unit -> int
val get_micro_version : unit -> int
module Bson : sig ... end

Binding of the BSON library, libbson

module Read_prefs : sig ... end
module Uri : sig ... end
module Cursor : sig ... end
module Collection : sig ... end
module Database : sig ... end
module Client : sig ... end