Module Sqlite3.Aggregate
val create_fun0 : ?inverse:('a -> 'a) -> ?value:('a -> Data.t) -> db -> string -> init:'a -> step:('a -> 'a) -> final:('a -> Data.t) -> unit
create_fun0 ?inverse ?value db name ~init ~step ~final
registers the step and finalizer functions and optional inverse and value functions under namename
with database handledb
. This function has arity0
.- raises SqliteError
if an invalid database handle is passed.
val create_fun1 : ?inverse:('a -> Data.t -> 'a) -> ?value:('a -> Data.t) -> db -> string -> init:'a -> step:('a -> Data.t -> 'a) -> final:('a -> Data.t) -> unit
create_fun1 ?inverse ?value db name ~init ~step ~final
registers the step and finalizer functions and optional inverse and value functions under namename
with database handledb
. This function has arity1
.- raises SqliteError
if an invalid database handle is passed.
val create_fun2 : ?inverse:('a -> Data.t -> Data.t -> 'a) -> ?value:('a -> Data.t) -> db -> string -> init:'a -> step:('a -> Data.t -> Data.t -> 'a) -> final:('a -> Data.t) -> unit
create_fun2 ?inverse ?value db name ~init ~step ~final
registers the step and finalizer functions and optional inverse and value functions under namename
with database handledb
. This function has arity2
.- raises SqliteError
if an invalid database handle is passed.
val create_fun3 : ?inverse:('a -> Data.t -> Data.t -> Data.t -> 'a) -> ?value:('a -> Data.t) -> db -> string -> init:'a -> step:('a -> Data.t -> Data.t -> Data.t -> 'a) -> final:('a -> Data.t) -> unit
create_fun3 ?inverse ?value db name ~init ~step ~final
registers the step and finalizer functions and optional inverse and value functions under namename
with database handledb
. This function has arity3
.- raises SqliteError
if an invalid database handle is passed.
val create_funN : ?inverse:('a -> Data.t array -> 'a) -> ?value:('a -> Data.t) -> db -> string -> init:'a -> step:('a -> Data.t array -> 'a) -> final:('a -> Data.t) -> unit
create_funN ?inverse ?value db name ~init ~step ~final
registers the step and finalizer functions and optional inverse and value functions under namename
with database handledb
. This function has arityN
.- raises SqliteError
if an invalid database handle is passed.