Legend:
Library
Module
Module type
Parameter
Class
Class type
Information about a database, its driver, and its query language.
This module provides descriptions supplied by the driver to aid the application in dealing with differences between database systems.
type dialect_tag = private[>
| `Mysql
| `Pgsql
| `Sqlite
]
A tag used for easy dispatching between query languages.
type sql_dialect_tag = [
| `Mysql
| `Pgsql
| `Sqlite
]
Subtype of the above which includes only known SQL dialects.
type parameter_style = private[>
| `None
| `Linear of string
| `Indexed ofint -> string
]
How parameters are named. This is useful for SQL since the difference between dialects typically have an intrusive effect on query strings. This may also be useful for non-SQL languages which support some form of variables or placeholders.
`None means that non of the following parameter styles apply, or that the driver does not support parameters at all.
`Linear s means that occurrences of s bind to successive parameters.
`Indexed f means that an occurrence of f i represents parameter number i, counting from 0.
A variant indicating the SQL dialect or other query language, used for easy dispatching when constructing queries. Can be omitted if non of the cases applies, but this means clients must inspect the backend-info to indentify the language.
Whether it makes sense to keep connections around for later reuse when using this driver. As hard requirements, the driver must clear any state which could affect subsequent operation, and it must reliably detect whether the connection is still in a usable state. As a further indicator, the overhead of establishing and closing connections should be high enough that it pays of to keep connections around.
Whether the driver supports concurrent operation. This is just a hint; it is up to the driver to serialize connections with locking primitives or other means.