package caqti

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

caqti-v3.0.0.tbz
sha256=3ceea06ba0e8e8bcab0386b5817b68cb30fce457eaa25ada0182891d66f6a0b9
sha512=e01f546a45b04cafd5fa262e9228e5a1aabd5e0942059c073a4181c928450baf3d990cc59ffb1a33dff445b46a0e218224a23dca96e8d24cdd0ab793d08e4538

doc/caqti/Caqti/Template/Dialect/index.html

Module Template.Dialect

Identification of SQL Dialects and Related Information

type 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.

type 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.

    *)