Make_populate.Cmodule Response :
Caqti_response_sig.S
with type 'a future := 'a Sys.future
and type ('a, 'err) stream := ('a, 'err) Sys.Stream.tval call :
f:(('b, 'm) Response.t -> ('c, 'e) result Sys.future) ->
('a, 'b, 'm) Caqti_request.t ->
'a ->
('c, [> Caqti_error.call ] as 'e) result Sys.futurecall ~f request params performs request with parameters params invoking f to process the result. The argument of f is only valid during the call to f, and must not be returned or operated on by other threads.
val set_statement_timeout :
float option ->
(unit, [> Caqti_error.call ]) result Sys.futureSet or clear the timeout after which a running SQL statement will be terminated if supported by the driver. This is currently supported for MariaDB (using max_statement_time) and PostgreSQL (using statement_timeout) and has no effect for SQLite3.
val start : unit -> (unit, [> Caqti_error.transact ]) result Sys.futureStarts a transaction if supported by the underlying database, otherwise does nothing.
val commit : unit -> (unit, [> Caqti_error.transact ]) result Sys.futureCommits the current transaction if supported by the underlying database, otherwise does nothing.
val rollback : unit -> (unit, [> Caqti_error.transact ]) result Sys.futureRolls back a transaction if supported by the underlying database, otherwise does nothing.
val deallocate :
('a, 'b, 'm) Caqti_request.t ->
(unit, [> Caqti_error.call ]) result Sys.futuredeallocate req deallocates the prepared query for req if it was allocated. The request must not be oneshot.
val disconnect : unit -> unit Sys.futureCalling disconnect () closes the connection to the database and frees up related resources.
val validate : unit -> bool Sys.futureFor internal use by Caqti_pool. Tries to ensure the validity of the connection and must return false if unsuccessful.
For internal use by Caqti_pool. Called after a connection has been used. check f must call f () exactly once with an argument indicating whether to keep the connection in the pool or discard it.