klyn.databases.sql.mariadb.MariaDbDriver.openConnection
method

    public openConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException:

Description

Opens a MariaDB connection from URL and connection properties.

    import klyn.databases.sql

    properties = Map<String, String>()
    properties["user"] = "app"
    # cnx = DriverManager.driverFor("mariadb://localhost/app").openConnection("mariadb://localhost/app", properties)

Throws

- SQLException if URL parsing, TCP connection, TLS setup, or authentication fails.