package caqti
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=b8ea432820154ec095132c4f7b244b06cd8553e0b2035185b844d9c4f30af8bb
sha512=b7e3ad8e6a9b587db2d517e15cd42df2945148f9223b2fa6f4bc2bcdd2709d53549cca4b65e54511d22466e4c9aa7f0b9c17305a07505519d8bf81d95de629b8
doc/caqti.template/Caqti_template/Dialect/index.html
Module Caqti_template.Dialect
Source
Identification of SQL Dialects and Related Information
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
| Pgsql of {
server_version : Version.t;
(*The version number of the server, currently only available when using caqti-driver-postgresql.
*)client_library : [ `postgresql | `pgx ];
(*Which client library is being used to communicate with the server.
*)
}
(*Identifies the backend as a PostgreSQL server.
*)| Mysql of {
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.
*)| Sqlite of {
server_version : Version.t;
(*The version number of the Sqlite3 library.
*)
}
(*Identifies the backend as an Sqlite3 library.
*)| Unknown of {
}
(*The query is to be used for logging or other display purposes, and no information is been provided about a potential SQL backend.
*)