Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include Sqlexpr_sqlite.S with type 'a result = 'a Lwt.t
type 'a result = 'a Lwt.t
type ('a, 'b) statement = {
sql_statement : string;
stmt_id : string option;
directive : (Sqlexpr_sqlite.st -> 'b) -> Sqlexpr_sqlite.st -> 'a;
}
type ('a, 'b, 'c) expression = {
statement : ('a, 'c) statement;
get_data : int * (Sqlite3.Data.t array -> 'b);
}
exception Sqlite_error of string * Sqlite3.Rc.t
val open_db : ?init:(Sqlite3.db -> unit) -> string -> db
val close_db : db -> unit
val select : db -> ?batch:int -> ('c, 'a, 'a list result) expression -> 'c
val select_f :
db ->
?batch:int ->
('a -> 'b result) ->
('c, 'a, 'b list result) expression ->
'c
val select_one : db -> ('c, 'a, 'a result) expression -> 'c
val select_one_maybe : db -> ('c, 'a, 'a option result) expression -> 'c
val select_one_f :
db ->
('a -> 'b result) ->
('c, 'a, 'b result) expression ->
'c
val select_one_f_maybe :
db ->
('a -> 'b result) ->
('c, 'a, 'b option result) expression ->
'c
val fold :
db ->
?batch:int ->
('a -> 'b -> 'a result) ->
'a ->
('c, 'b, 'a result) expression ->
'c
val iter :
db ->
?batch:int ->
('a -> unit result) ->
('b, 'a, unit result) expression ->
'b
module Directives : sig ... end
module Conversion : sig ... end