oceandrift.db.mariadb

MariaDB Database Driver

Supposed to be MySQL compatible, as well.

DatabaseDriver db = new MariaDBDatabaseDriver(
    "localhost",
    "username",
    "password",
    "database name",    // (optional) “Database” on the server to use initially
    3306,               // (optional) MariaDB server port
);

db.connect(); // establish database connection
scope(exit) db.close(); // scope guard, to close the database connection when exiting the current scope
If you don’t specify an inital database during the connection setup, you’ll usually want to manually select one by executing a USE databaseName; statement.

Members

Aliases

DBALRow
alias DBALRow = oceandrift.db.dbal.driver.Row
Undocumented in source.
MariaDBDatabaseDriver
alias MariaDBDatabaseDriver = MariaDB
Undocumented in source.
MySQLRow
alias MySQLRow = mysql.safe.Row
Undocumented in source.

Classes

MariaDB
class MariaDB

MariaDB database driver for oceandrift

MariaDBStatement
class MariaDBStatement
Undocumented in source.

Functions

mysqlToDBAL
DBALRow mysqlToDBAL(MySQLRow mysql)

Creates an oceandrift.db.dbal.driver.Row from a MySQLRow

mysqlToDBAL
DBValue mysqlToDBAL(MySQLVal mysql)

Creates a DBValue from a MySQLVal

Meta