Driver
interfacein packageklyn.databases.sql
public interface Driver:
Driver

SQL driver contract used by DriverManager to resolve connection URLs.

A driver is a small stateless object that declares whether it can handle a connection URL and then opens the matching connection. Custom drivers can be registered before calling DriverManager.connect(...).

import klyn.databases.sql

driver = DriverManager.driverFor("odbc:DSN=app")
print(driver.name)
Properties
Modifier and Type Member Description
public readonly property name
name as String
Human-readable driver name.
Methods
Modifier and Type Member Description
public openConnection
openConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException
Opens a connection using the supplied URL and properties.
public supports
supports(url as String) as Boolean
Returns true when this driver can open the given URL.