package caqti

  1. Overview
  2. Docs
Abstraction over multiple database libraries

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-0.9.0.tbz
sha256=4c84a16d983d0fed2786f536a3fa4d8fa113b8b30b4deea4a74772582d5489b2
md5=42a2e2d3b73d7fbaecc618549aad2865

doc/caqti.v1/Caqti1_errors/index.html

Module Caqti1_errorsSource

(v1) Exceptions.

  • deprecated

    Don't use this in new code.

Sourceexception Connect_failed of Uri.t * string

The exception raised when a backend fails to connect to a resource. Due to pooled connections, this may be raised by describe and query functions as well as the connect function.

Sourceexception Prepare_failed of Uri.t * Caqti1_query.query_info * string

The exception raised when query preparation fails.

Sourceexception Execute_failed of Uri.t * Caqti1_query.query_info * string

The exception raised when query execution failes.

Sourceexception Miscommunication of Uri.t * Caqti1_query.query_info * string

This exception may be raised by a backend when something unexpected happen during the communication process. It signifies a programming error or at least an incompatibility somewhere:

  • A query returns a different number of tuples than expected.
  • A query returns tuples of a different type then expected.
  • A query returns a different kind of result than expected.
  • A networked backend does not understand the result from the server, e.g. due to a different protocol version.
OCaml

Innovation. Community. Security.