public interface 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)| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | namename as String |
Human-readable driver name. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | openConnectionopenConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException |
Opens a connection using the supplied URL and properties. |
| public | supports | Returns true when this driver can open the given URL. |