public final class SQLConfiguration implements ProviderConfiguration:
Immutable connection and rendering configuration for the SQL KQL provider.
The connection URL is passed unchanged to DriverManager. MariaDB, PostgreSQL and SQL Server dialects are inferred from their URL when dialect is omitted. ODBC URLs require an explicit dialect because an ODBC connection string does not identify SQL semantics reliably.
configuration = SQLConfiguration( url="mariadb://localhost:3306/klyn", login="klyn", password="secret" )
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | dialectdialect as SQLDialect |
SQL dialect used by KQL translation, persistence and schema management. |
| public readonly property | formatSQLformatSQL as Boolean |
Whether logged SQL is expanded over readable lines. |
| public readonly property | loginlogin as String |
Database login, or an empty string when the driver uses another authentication mechanism. |
| public readonly property | passwordpassword as String |
Database password passed to the selected low-level driver. |
| public readonly property | providerNameproviderName as String: |
Stable provider family name. |
| public readonly property | queryTimeoutSecondsqueryTimeoutSeconds as Int |
Provider query timeout in seconds, or 0 for no explicit deadline. |
| public readonly property | showSQLshowSQL as Boolean |
Whether executed SQL text is written to the current console. |
| public readonly property | urlurl as String |
Low-level database URL accepted by DriverManager. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SQLConfigurationSQLConfiguration(
url as String,
login as String = "",
password as String = "",
dialect as SQLDialect = null,
showSQL as Boolean = false,
formatSQL as Boolean = false,
queryTimeoutSeconds as Int = 0
): |
Creates one SQL provider configuration. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | openConnectionopenConnection() as Connection throws Exception: |
Opens one low-level connection owned by the caller. |