Module Sqlite3.Aggregate


module Aggregate: sig .. end

val create_fun0 : Sqlite3.db ->
string -> init:'a -> step:('a -> 'a) -> final:('a -> Sqlite3.Data.t) -> unit
create_fun0 db name ~init ~step ~final registers the step and finalizer functions under name name with database handle db. This function has arity 0.
Raises SqliteError if an invalid database handle is passed.
val create_fun1 : Sqlite3.db ->
string ->
init:'a ->
step:('a -> Sqlite3.Data.t -> 'a) -> final:('a -> Sqlite3.Data.t) -> unit
create_fun1 db name ~init ~step ~final registers the step and finalizer functions under name name with database handle db. This function has arity 1.
Raises SqliteError if an invalid database handle is passed.
val create_fun2 : Sqlite3.db ->
string ->
init:'a ->
step:('a -> Sqlite3.Data.t -> Sqlite3.Data.t -> 'a) ->
final:('a -> Sqlite3.Data.t) -> unit
create_fun2 db name ~init ~step ~final registers the step and finalizer functions under name name with database handle db. This function has arity 2.
Raises SqliteError if an invalid database handle is passed.
val create_funN : Sqlite3.db ->
string ->
init:'a ->
step:('a -> Sqlite3.Data.t array -> 'a) ->
final:('a -> Sqlite3.Data.t) -> unit
create_funN db name ~init ~step ~final registers the step and finalizer functions under name name with database handle db. This function has arity N.
Raises SqliteError if an invalid database handle is passed.