arsd.mysql

Implementation of the arsd.database.Database interface for accessing MySQL (and MariaDB) databases. Uses the official MySQL client library, and thus needs that installed to compile and run.

If you're using MySQL client library v5.0 or less, you must pass this to dmd: -version=Less_Than_MySQL_51 This is important - otherwise you will see bizarre segfaults!

Public Imports

arsd.database
public import arsd.database;
Undocumented in source.

Members

Classes

EmptyResultException
class EmptyResultException
MySql
class MySql

The main class for accessing the MySql database.

MySqlResult
class MySqlResult

Represents a query result. You can loop over this with a foreach statement to access individual rows.

Functions

queryOneRow
Ret queryOneRow(DB db, string sql, T t)

Meta