ddbc.drivers.mysqlddbc

DDBC - D DataBase Connector - abstraction layer for RDBMS access, with interface similar to JDBC.

Source file ddbc/drivers/mysqlddbc.d.

DDBC library attempts to provide implementation independent interface to different databases.

Set of supported RDBMSs can be extended by writing Drivers for particular DBs. Currently it only includes MySQL driver.

JDBC documentation can be found here: http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/package-summary.html

This module contains implementation of MySQL Driver which uses patched version of MYSQLN (native D implementation of MySQL connector, written by Steve Teale)

Current version of driver implements only unidirectional readonly resultset, which with fetching full result to memory on creation.

You can find usage examples in unittest{} sections.

Members

Aliases

enforceHelper
alias enforceHelper = enforceEx
Undocumented in source.
enforceHelper
alias enforceHelper = enforce
Undocumented in source.

Classes

MySQLConnection
class MySQLConnection
Undocumented in source.
MySQLDriver
class MySQLDriver
Undocumented in source.
MySQLPreparedStatement
class MySQLPreparedStatement
Undocumented in source.
MySQLResultSet
class MySQLResultSet
Undocumented in source.
MySQLStatement
class MySQLStatement
Undocumented in source.

Functions

createUnitTestMySQLDataSource
DataSource createUnitTestMySQLDataSource()

use this data source for tests

fromMySQLType
SqlType fromMySQLType(int t)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

MYSQL_TESTS_ENABLED
bool MYSQL_TESTS_ENABLED;

change to false to disable tests on real MySQL server

MYSQL_TESTS_ENABLED
bool MYSQL_TESTS_ENABLED;
Undocumented in source.
MYSQL_UNITTEST_DB
string MYSQL_UNITTEST_DB;
Undocumented in source.
MYSQL_UNITTEST_HOST
string MYSQL_UNITTEST_HOST;

change parameters if necessary

MYSQL_UNITTEST_PASSWORD
string MYSQL_UNITTEST_PASSWORD;
Undocumented in source.
MYSQL_UNITTEST_PORT
int MYSQL_UNITTEST_PORT;
Undocumented in source.
MYSQL_UNITTEST_USER
string MYSQL_UNITTEST_USER;
Undocumented in source.

Meta

Authors

Vadim Lopatin