package ezjs_idb

  1. Overview
  2. Docs

Module Ezjs_idbSource

Sourcemodule Types : sig ... end
Sourcetype mode =
  1. | READONLY
  2. | READWRITE
  3. | VERSIONCHANGE
Sourcetype direction =
  1. | NEXT
  2. | PREV
  3. | NEXTUNIQUE
  4. | PREVUNIQUE
Sourcetype db_options = {
  1. key_path : string option;
  2. auto_increment : bool option;
}
Sourcetype db_upgrade = {
  1. old_version : int;
  2. new_version : int;
}
Sourcetype index_options = {
  1. unique : bool option;
  2. multi_entry : bool option;
  3. locale : bool option;
}
Sourcemodule type Tr_sig = sig ... end
Sourceval result : < result : < get : 'res.. > Js_of_ocaml.Js.gen_prop.. > Js_of_ocaml.Js.t -> 'res
Sourceval wrap : ?error: ((< onerror : < set : ('b, 'c -> unit) Ezjs_min.meth_callback Ezjs_min.AOpt.t -> unit.. > Js_of_ocaml.Js.gen_prop ; onsuccess : < set : ('d, 'e -> 'f) Ezjs_min.meth_callback Ezjs_min.AOpt.t -> unit.. > Js_of_ocaml.Js.gen_prop ; result : < get : 'g.. > Js_of_ocaml.Js.gen_prop.. > as 'a) Js_of_ocaml.Js.t -> unit) -> ?callback:('g -> 'f) -> 'a Js_of_ocaml.Js.t Lazy.t -> unit
Sourceval wrapf : ?error: ((< onerror : < set : ('b, 'c -> unit) Ezjs_min.meth_callback Ezjs_min.AOpt.t -> unit.. > Js_of_ocaml.Js.gen_prop ; onsuccess : < set : ('d, 'e -> 'f) Ezjs_min.meth_callback Ezjs_min.AOpt.t -> unit.. > Js_of_ocaml.Js.gen_prop ; result : < get : 'g.. > Js_of_ocaml.Js.gen_prop.. > as 'a) Js_of_ocaml.Js.t -> unit) -> ?callback:('h -> 'f) -> ('g -> 'h) -> 'a Js_of_ocaml.Js.t Lazy.t -> unit
Sourceval openDB : ?upgrade:(Types.iDBDatabase Ezjs_min.t -> db_upgrade -> unit) -> ?error: (Types.iDBDatabase Ezjs_min.t Types.iDBOpenDBRequest Js_of_ocaml.Js.t -> unit) -> ?version:int -> string -> (Types.iDBDatabase Ezjs_min.t -> unit) -> unit
Sourceval create_store : ?options:db_options -> Types.iDBDatabase Ezjs_min.t -> string -> 'a Js_of_ocaml__Js.t
Sourceval get_store : ?mode:mode -> Types.iDBDatabase Ezjs_min.t -> string -> ('a, 'b) Types.iDBObjectStore Ezjs_min.t
Sourcemodule Store (K : Tr_sig) (D : Tr_sig) : sig ... end
Sourcemodule NoTr (S : sig ... end) : Tr_sig with type t = S.t and type js = S.t
Sourcemodule IntTr : Tr_sig with type js = int and type t = int
Sourcemodule StringTr : Tr_sig with type js = Ezjs_min.js_string Ezjs_min.t and type t = string
Sourcemodule NumberTr : Tr_sig with type js = Ezjs_min.number Ezjs_min.t and type t = float
Sourcemodule DateTr : Tr_sig with type js = Ezjs_min.date Ezjs_min.t and type t = string
OCaml

Innovation. Community. Security.