package omigrate

  1. Overview
  2. Docs
type t = {
  1. db : Sqlite3.db;
  2. begin_transaction : Sqlite3.stmt;
  3. commit : Sqlite3.stmt;
  4. rollback : Sqlite3.stmt;
}
val create : ?mode:[ `NO_CREATE | `READONLY ] -> string -> t
val close : t -> bool
val or_fail : Sqlite3.db -> cmd:string -> Sqlite3.Rc.t -> unit
val no_callback : 'a -> 'b
val exec_stmt : t -> ?cb:(Sqlite3.Data.t list -> 'a) -> Sqlite3.stmt -> unit
val bind : t -> Sqlite3.stmt -> Sqlite3.Data.t list -> unit
val exec : t -> Sqlite3.stmt -> Sqlite3.Data.t list -> unit
val query : t -> Sqlite3.stmt -> Sqlite3.Data.t list -> Sqlite3.Data.t list list
val with_transaction : t -> (unit -> 'a) -> 'a
OCaml

Innovation. Community. Security.