package caqti

  1. Overview
  2. Docs
Unified interface to relational database libraries

Install

dune-project
 Dependency

Authors

Maintainers

Sources

caqti-v2.3.2.tbz
sha256=8f6c1724b59ac22a5c657c9e53b9a1706e39ecd462e82958b0cea88e43f0aba7
sha512=75b968ab37ae94cadcaabbcce0f91b1ffa4334ed69e441bdeb823077eb7675264282efb0fab3baaaad446582cfb427769e19f22c8c194a316ac2248c3fba5cf8

doc/caqti.template/Caqti_template/Dialect/index.html

Module Caqti_template.DialectSource

Identification of SQL Dialects and Related Information

Sourcetype t = ..

This type identifies the SQL dialect and other differences which may be relevant when composing query strings. This is an open type to allow future additions, either defined below or externally. Each case has the form of a constructor identifying the software which interprets the SQL code and its version number, if available, followed by any backend-specific details.

Sourcetype t += private
  1. | Pgsql of {
    1. server_version : Version.t;
      (*

      The version number of the server, currently only available when using caqti-driver-postgresql.

      *)
    2. client_library : [ `postgresql | `pgx ];
      (*

      Which client library is being used to communicate with the server.

      *)
    }
    (*

    Identifies the backend as a PostgreSQL server.

    *)
  2. | Mysql of {
    1. server_version : Version.t;
      (*

      The version number of the server, but curretly unavailable, awaiting ocaml-mariadb support.

      *)
    }
    (*

    Identifies the backend as a MariaDB or MySQL server. No information is currently provided about the variant and version.

    *)
  3. | Sqlite of {
    1. server_version : Version.t;
      (*

      The version number of the Sqlite3 library.

      *)
    }
    (*

    Identifies the backend as an Sqlite3 library.

    *)
  4. | Unknown of {
    1. purpose : [ `Dummy | `Printing ];
    }
    (*

    The query is to be used for logging or other display purposes, and no information is been provided about a potential SQL backend.

    *)