MariaDbDriver
classin packageklyn.databases.sql.mariadb
public class MariaDbDriver implements Driver
MariaDbDriver
All Implemented Interfaces: Driver

MariaDB driver entry point for klyn.databases.sql.

import klyn.databases.sql.mariadb

# cnx = MariaDbDriver.connect("mariadb://localhost:3306/app", "app", "secret")
Properties
Modifier and Type Member Description
public readonly property name
name as String
Human-readable driver name.
Constructors
Modifier and Type Member Description
public MariaDbDriver Creates the stateless MariaDB driver object.
Methods
Modifier and Type Member Description
public static connect
connect(url as String, user as String = "", password as String = "", properties as Map<String, String> = null, sslContext as SSLContext = null) as MariaDbConnection throws Exception
Opens a MariaDB connection.
public openConnection
openConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException
Opens a MariaDB connection from URL and connection properties.
public supports
supports(url as String) as Boolean
Returns true for MariaDB connection URLs.