package caqti

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

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.

    *)
OCaml

Innovation. Community. Security.