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:??? -> ?callback:??? -> 'a Js_of_ocaml.Js.t Lazy.t -> unit
Sourceval wrapf : ?error:??? -> ?callback:??? -> ('g -> 'h) -> 'a Js_of_ocaml.Js.t Lazy.t -> unit
Sourceval openDB : ?upgrade:??? -> ?error:??? -> ?version:??? -> string -> (Types.iDBDatabase Ezjs_min.t -> unit) -> unit
Sourceval create_store : ?options:??? -> Types.iDBDatabase Ezjs_min.t -> string -> 'a Js_of_ocaml__Js.t
Sourceval get_store : ?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