SQLConfiguration
class in package klyn.data.sql

    public class SQLConfiguration implements ProviderConfiguration:

SQLConfiguration
All Implemented Interfaces: 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"
    )

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | database `database as String` | No summary.
public readonly property | dialect `dialect as SQLDialect` | No summary.
public readonly property | driver `driver as String` | No summary.
public readonly property | host `host as String` | No summary.
public readonly property | mappedTypes `mappedTypes as IList<Type>:` | 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 | password `password as String` | No summary.
public readonly property | port `port as Int` | No summary.
public readonly property | providerName `providerName as String:` | No summary.
public readonly property | showSQL `showSQL as Boolean` | No summary.
public readonly property | username `username as String` | No summary.

Inherited Properties
property Inherited Properties from ProviderConfiguration: mappedTypes, providerName
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | SQLConfiguration `SQLConfiguration( 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.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | buildConnectionString `buildConnectionString() as String:` | Returns the low-level DriverManager connection URL.
public | openConnection `openConnection() as Connection:` | Opens one low-level SQL connection owned by a single provider execution.