public class OdbcDriver implements Driver:
ODBC driver entry point for klyn.databases.sql.
import klyn.databases.sql.odbc
cnx = OdbcDriver.connect("odbc:DSN=app;UID=app;PWD=secret")
cnx.close()| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | namename as String: |
Human-readable driver name. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | OdbcDriverOdbcDriver(): |
Creates the stateless ODBC driver object. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | accepts | Returns true for URLs handled by the ODBC driver. |
| public static | connectconnect(url as String,
user as String = "",
password as String = "",
properties as Map<String, String> = null) as OdbcConnection throws SQLException: |
Opens an ODBC connection. |
| public | openConnectionopenConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException: |
Opens an ODBC connection from URL and connection properties. |
| public | supports | Returns true for URLs handled by this driver instance. |