package caqti
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=d688bd22f6fde5be5a755900545fade0d5fdce6dbcb0b85770d02dad87c41e7c
md5=d18745a703da336054c0d27e78f8be8a
doc/caqti/Caqti_connection_sig/module-type-Base/index.html
Module type Caqti_connection_sig.BaseSource
Essential connection signature implemented by drivers.
Query
val call :
f:(('b, 'm) Response.t -> ('c, 'e) result future) ->
('a, 'b, 'm) Caqti_request.t ->
'a ->
('c, [> Caqti_error.call ] as 'e) result futurecall ~f request params performs request with parameters params invoking f to process the result.
Transactions
Starts a transaction if supported by the underlying database, otherwise does nothing.
Commits the current transaction if supported by the underlying database, otherwise does nothing.
Rolls back a transaction if supported by the underlying database, otherwise does nothing.
Disconnection and Reuse
Calling disconnect () closes the connection to the database and frees up related resources.
For 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.