This function is a wrapper of ping that returns a boolean instead of raising an exception.
ping
alter conn ?name query executes the statement query and optionally names it name.
alter conn ?name query
query
name
Start a transaction.
Close the database handle.
close_portal conn ?portal () closes a portal and frees up any resources.
close_portal conn ?portal ()
close_statement conn ?name () closes a prepared statement and frees up any resources.
close_statement conn ?name ()
Perform a COMMIT operation on the database.
Connect to the database.
Produce a human-readable textual representation of a concrete connection descriptor (the password is NOT included in the output of this function) for logging and error reporting purposes.
Produce the actual, concrete connection parameters based on the values and availability of the various configuration variables.
describe_portal conn ?portal () describes the named or unnamed portal's result types.
describe_portal conn ?portal ()
describe_statement conn ?name () describes the named or unnamed statement's parameter types and result types.
describe_statement conn ?name ()
execute conn ?name ~params () executes the named or unnamed statement name, with the given parameters params, returning the result rows (if any).
execute conn ?name ~params ()
params
inject conn ?name query executes the statement query and optionally names it name and gives the result.
inject conn ?name query
Maximum message length accepted from the back-end.
Returns the OCaml equivalent type name to the PostgreSQL type oid.
oid
Ping the database.
prepare conn ~query ?name ?types () prepares the statement query and optionally names it name and sets the parameter types to types.
prepare conn ~query ?name ?types ()
types
Retrieve some private data previously attached to the database handle.
Perform a ROLLBACK operation on the database.
This is a shorthand for SELECT CURRVAL(serial).
SELECT CURRVAL(serial)
As PGOCaml_generic.PGOCAML_GENERIC.serial but assumes that the column is a SERIAL or SERIAL4 type.
PGOCaml_generic.PGOCAML_GENERIC.serial
Same as PGOCaml_generic.PGOCAML_GENERIC.serial.
Attach some private data to the database handle.
transact db ?isolation ?access ?deferrable f wraps your function f inside a transactional block.
transact db ?isolation ?access ?deferrable f
f
Retrieve the unique identifier for this connection.
Verbosity.