caqti-driver-postgresql

PostgreSQL driver for Caqti based on C bindings
IN THIS PACKAGE

Error Details

The following gives access to diagnostics collected from the PostgreSQL connection and result objects.

type Caqti_error.msg +=
| Connect_error_msg of {
error : Postgresql.error;(*

The exception raised by postgresql-ocaml.

*)
}
(*

An exception was raised while attempting to connect to the database.

*)
| Connection_error_msg of {
error : Postgresql.error;(*

The exception raised by postgresql-ocaml.

*)
connection_status : Postgresql.connection_status;(*

The connection status reported by PQstatus.

*)
}
(*

An exception was raised while operating on the database connection.

*)
| Result_error_msg of {
error_message : string;(*

The error message from PQresultErrorMessage.

*)
sqlstate : string;(*

The SQLSTATE error field.

*)
}
(*

An error was reported on the result from a database operation.

*)