Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Direct access to the stores. This is intended only for use in unit-tests.
Friendly OCaml/Lwt abstraction over IndexedDB.
val store_name : string -> store_name
val make :
db_name ->
version:int ->
init:(old_version:int -> db_upgrader -> unit) ->
db Lwt.t
Connect to database db_name
. If it doesn't yet exist or is for an older version, calls init
to initialise it first.
val close : db -> unit
Begin closing the connection (returns immediately).
val delete_database : db_name -> unit Lwt.t
val create_store : db_upgrader -> store_name -> unit
val delete_store : db_upgrader -> store_name -> unit
val store : db -> store_name -> store