public class SQLConfiguration implements ProviderConfiguration:
Strongly typed configuration for official relational KQL providers.
Direct drivers select their matching dialect deterministically. ODBC uses ODBCConfiguration, where the dialect is mandatory and never guessed from the driver name.
config = SQLConfiguration( driver="mariadb", host="localhost", port=3306, database="klyn", username="klyn", password="secret" )
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | databasedatabase as String |
No summary. |
| public readonly property | dialectdialect as SQLDialect |
No summary. |
| public readonly property | driverdriver as String |
No summary. |
| public readonly property | hosthost as String |
No summary. |
| public readonly property | mappedTypes | SQL mappings are discovered from the factory mapping registry and from reflected @Entity types, so the connection configuration contributes no additional entity type. |
| public readonly property | passwordpassword as String |
No summary. |
| public readonly property | portport as Int |
No summary. |
| public readonly property | providerNameproviderName as String: |
No summary. |
| public readonly property | showSQLshowSQL as Boolean |
No summary. |
| public readonly property | usernameusername as String |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SQLConfigurationSQLConfiguration(
driver as String,
host as String,
port as Int,
database as String,
username as String,
password as String,
dialect as SQLDialect = null,
showSQL as Boolean = false
): |
Creates a configuration for one official direct SQL driver. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | buildConnectionStringbuildConnectionString() as String: |
Returns the low-level DriverManager connection URL. |
| public | openConnectionopenConnection() as Connection: |
Opens one low-level SQL connection owned by a single provider execution. |