klyn.databases.sql.odbc.OdbcDriver.openConnection
method
public openConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException:
Description

Opens an ODBC connection from URL and connection properties.

import klyn.databases.sql

properties = Map<String, String>()
properties["user"] = "app"
# cnx = DriverManager.driverFor("odbc://app").openConnection("odbc://app", properties)
Throws
  • SQLException if the URL is invalid, the ODBC manager is unavailable, or the database rejects the connection.