Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
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