package caqti

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

caqti-v2.3.0.tbz
sha256=4dadf33904c9fd25065dbf6739aa0a9eaaaea000c6981c17a534b475dd5c3891
sha512=13c1cbeff3ee0e54ed1cc8f8df5f7660c292d5d50faa9480916f3c7e578961ab3b3779395c0664346cf42509f7b98d986e8377133542869a462288d6c0e34cbf

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.

    *)