Module Ocsipersist_lib
This modules provides tools for creating more implementations of the Ocsipersist virtual module.
module Sigs : sig ... endexception Decoding_error of stringRaised by the JSON frontends when a value read from the backend cannot be deserialised by the codec it was opened with (the type changed, or the stored data is corrupted). The argument is the decoder's error message.
val decode_json : 'a Deriving_Json.t -> string -> 'aDecode a JSON value stored in a backend, turning the decoder's Failure into Decoding_error so that callers can distinguish an unreadable value from a backend error.
val is_valid_name_char : char -> boolval validate_name : string -> unitmodule Polymorphic (Functorial : Sigs.FUNCTORIAL) : Sigs.POLYMORPHICderiving polymorphic interface from the functorial one
module Ref (Store : Sigs.STORE) : sig ... endmodule Store_json (Functorial : Sigs.FUNCTORIAL) : Sigs.STORE_JSONmodule Ref_json (Functorial : Sigs.FUNCTORIAL) : Sigs.REF_JSONType-safe persistent references using Deriving_Json for serialisation.