package caqti-driver-mariadb

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

Install

Dune Dependency

Authors

Maintainers

Sources

caqti-v2.0.1.tbz
sha256=7eb57225c521fe25395653d960b1c381bb2b2ccae47bc2a827bb16611988da8b
sha512=eeafaf495b08fb8620ddee1711b8f9fa2ca0c79fb450a905c8d071806b7046d665e1e2ac0e7d3c7ca1258455decbf184e689e9ecb2453ec9d952b864f9dd14f4

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.