package caqti-driver-postgresql

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

PostgreSQL driver for Caqti (bindings).

This driver is implemented in terms of the postgrsql OPAM package which provides bindings for the PostgreSQL C client library.

It handles URIs of the form

postgresql://<user>:<password>@<host>:<port>/<rest>

which are passed verbatim to Postgresql.connection, and URIs of the form postgresq:/<query> which are first split into <key> = '<value>' form.

Additionally the query option notice_processing can be set to quiet (the default) to suppress notices or to stderr to emit notices to standard error. This option is interpreted by the Caqti driver and stripped off before passing the URI to libpq.