klyn.databases.sql.odbc.OdbcDriver.connect
method
public static connect(url as String,
user as String = "",
password as String = "",
properties as Map<String, String> = null) as OdbcConnection throws SQLException:
Description

Opens an ODBC connection.

import klyn.databases.sql.odbc

# cnx = OdbcDriver.connect("odbc:DSN=app", "app", "secret")
Throws
  • SQLException if the URL is invalid, the ODBC manager is unavailable, or the database rejects the connection.