package caqti-driver-mariadb

  1. Overview
  2. Docs
MariaDB driver for Caqti using C bindings

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-v2.2.4.tbz
sha256=b8ea432820154ec095132c4f7b244b06cd8553e0b2035185b844d9c4f30af8bb
sha512=b7e3ad8e6a9b587db2d517e15cd42df2945148f9223b2fa6f4bc2bcdd2709d53549cca4b65e54511d22466e4c9aa7f0b9c17305a07505519d8bf81d95de629b8

doc/caqti-driver-mariadb/Caqti_driver_mariadb/index.html

Module Caqti_driver_mariadbSource

Caqti driver for MariaDB (bindings).

This driver is implemented in terms of the mariadb OPAM package. It handles URIs of the form mariadb://<user>:<password>@<host>:<port>/?<query> with the following query arguments:

  • socket=<socket> requests a UNIX domain socket connection
  • config-group=<name> loads additional settings from the section <name> of the default configuration file. Default: "caqti".

Except for the latter, options are passed to the correspondingly named arguments to the connect function of MariaDB. All parts of the URL are optional, except that the chosen combination must suffice to establish a connection.

The interface provided by this module should normally not be used by applications, but provides access to some MariaDB specifics in case they are needed.

Error Details

The following provides access to diagnostics collected from the MariaDB connection and statement objects.

Sourcetype Caqti_error.msg +=
  1. | Error_msg of {
    1. errno : int;
      (*

      The error number returned by mysql_errno or mysql_stmt_errno.

      *)
    2. error : string;
      (*

      The error message returned by mysql_error or mysql_stmt_errno.

      *)
    }
OCaml

Innovation. Community. Security.

On This Page
  1. Error Details