package sqlexpr

  1. Overview
  2. Docs
type 'a result = 'a M.t
type db
type stmt
val set_retry_on_busy : bool -> unit
val get_retry_on_busy : unit -> bool
val open_db : ?init:(Sqlite3.db -> unit) -> string -> db
val close_db : db -> unit
val prepare : db -> (stmt -> string -> Sqlite3.Data.t list -> 'a result) -> (Sqlite3.Data.t list * int * string * string option) -> 'a result
val step : ?sql:string -> ?params:Sqlite3.Data.t list -> stmt -> Sqlite3.Rc.t result
val step_with_last_insert_rowid : ?sql:string -> ?params:Sqlite3.Data.t list -> stmt -> Int64.t result
val reset : stmt -> unit result
val row_data : stmt -> Sqlite3.Data.t array result
val raise_error : stmt -> ?sql:string -> ?params:Sqlite3.Data.t list -> ?errmsg:string -> Sqlite3.Rc.t -> 'a result
val unsafe_execute : db -> ?retry_on_busy:bool -> string -> unit result
val borrow_worker : db -> (db -> 'a result) -> 'a result
val steal_worker : db -> (db -> 'a result) -> 'a result
val transaction_key : db -> unit TLS.key
val read_rows : (fname:string -> stmt -> sql:string -> Sqlite3.Data.t list -> ?batch:int -> cols:int -> (Sqlite3.Data.t array -> 'b) -> 'b {Types}1.row_batch result) option
OCaml

Innovation. Community. Security.