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

Classes

MySQLConnection
class MySQLConnection
MySQLPreparedStatement
class MySQLPreparedStatement

Functions

createUnitTestMySQLDataSource
DataSource createUnitTestMySQLDataSource()

use this data source for tests

Variables

MYSQL_TESTS_ENABLED
bool MYSQL_TESTS_ENABLED;

change to false to disable tests on real MySQL server

MYSQL_UNITTEST_HOST
string MYSQL_UNITTEST_HOST;

change parameters if necessary

Meta

Authors

Vadim Lopatin