klyn.databases.sql.DriverManager.connect
method

    public static connect(url as String, properties as Map<String, String> = null) as Connection throws Exception:

Description

Opens a connection from a URL and optional properties.

    import klyn.databases.sql

    # cnx = DriverManager.connect("mariadb://localhost:3306/app", {"user": "app"})
    # cnx = DriverManager.connect("sqlserver://localhost:1433/app", {"user": "app"})
    # cnx = DriverManager.connect("odbc:DSN=app;UID=app;PWD=secret")

Throws

- Exception if driver lookup, URL parsing, or connection creation fails.