klyn.databases.sql.DriverManager.driverFor
method
public static driverFor(url as String) as Driver throws SQLFeatureNotSupportedException:
Description

Returns the first registered driver supporting the URL.

import klyn.databases.sql

driver = DriverManager.driverFor("sqlserver://localhost/app")
print(driver.name)
Parameters
  • url Database connection URL.
Returns

Matching SQL driver.

Throws
  • SQLFeatureNotSupportedException if the URL is null or no driver supports it.