OdbcDriver
classin packageklyn.databases.sql.odbc
public class OdbcDriver implements Driver
OdbcDriver
All Implemented Interfaces: 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()
Properties
Modifier and Type Member Description
public readonly property name
name as String
Human-readable driver name.
Constructors
Modifier and Type Member Description
public OdbcDriver Creates the stateless ODBC driver object.
Methods
Modifier and Type Member Description
public static accepts
accepts(url as String) as Boolean
Returns true for URLs handled by the ODBC driver.
public static connect
connect(url as String, user as String = "", password as String = "", properties as Map<String, String> = null) as OdbcConnection throws SQLException
Opens an ODBC connection.
public openConnection
openConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException
Opens an ODBC connection from URL and connection properties.
public supports
supports(url as String) as Boolean
Returns true for URLs handled by this driver instance.