mysql

Imports all of mysql-native.

More...

Modules

commands
module mysql.commands

Use a DB via plain SQL statements.

connection
module mysql.connection

Connect to a MySQL/MariaDB server.

escape
module mysql.escape

Escape special characters in MySQL strings.

exceptions
module mysql.exceptions

Exceptions defined by mysql-native.

metadata
module mysql.metadata

Retrieve metadata from a DB.

pool
module mysql.pool

Connect to a MySQL/MariaDB database using vibe.d's ConnectionPool.

prepared
module mysql.prepared

Use a DB via SQL prepared statements.

protocol
module mysql.protocol
result
module mysql.result

Structures for data received: rows and result sets (ie, a range of rows).

types
module mysql.types

Structures for MySQL types not built-in to D/Phobos.

Public Imports

mysql.commands
public import mysql.commands;
Undocumented in source.
mysql.connection
public import mysql.connection;
Undocumented in source.
mysql.escape
public import mysql.escape;
Undocumented in source.
mysql.exceptions
public import mysql.exceptions;
Undocumented in source.
mysql.metadata
public import mysql.metadata;
Undocumented in source.
mysql.pool
public import mysql.pool;
Undocumented in source.
mysql.prepared
public import mysql.prepared;
Undocumented in source.
mysql.result
public import mysql.result;
Undocumented in source.
mysql.types
public import mysql.types;
Undocumented in source.
mysql.protocol.constants
public import mysql.protocol.constants;
Undocumented in source.
mysql.protocol.extra_types
public import mysql.protocol.extra_types;
Undocumented in source.
mysql.protocol.packet_helpers
public import mysql.protocol.packet_helpers;
Undocumented in source.
mysql.protocol.packets
public import mysql.protocol.packets;
Undocumented in source.
mysql.protocol.sockets
public import mysql.protocol.sockets;
Undocumented in source.
mysql.test.common
public import mysql.test.common;
Undocumented in source.
mysql.test.integration
public import mysql.test.integration;
Undocumented in source.
mysql.test.regression
public import mysql.test.regression;
Undocumented in source.

Members

Functions

main
void main()
Undocumented in source. Be warned that the author may not have intended to support it.

Imports

SvrCapFlags (from mysql.protocol.constants)
public import mysql.protocol.constants : SvrCapFlags;
Undocumented in source.

Detailed Description

MySQL to D Type Mappings

MySQLD
NULLtypeof(null)
BITbool
TINY(u)byte
SHORT(u)short
INT24(u)int
INT(u)int
LONGLONG(u)long
FLOATfloat
DOUBLEdouble
MySQLD
TIMESTAMPDateTime
TIMETimeOfDay
YEARushort
DATEDate
DATETIMEDateTime
MySQLD
VARCHAR, ENUM, SET, VARSTRING, STRING, NEWDECIMALstring
TINYBLOB, MEDIUMBLOB, BLOB, LONGBLOBubyte[]
TINYTEXT, MEDIUMTEXT, TEXT, LONGTEXTstring
otherunsupported (throws)

D to MySQL Type Mappings

DMySQL
typeof(null)NULL
boolBIT
(u)byte(UNSIGNED) TINY
(u)short(UNSIGNED) SHORT
(u)int(UNSIGNED) INT
(u)long(UNSIGNED) LONGLONG
float(UNSIGNED) FLOAT
double(UNSIGNED) DOUBLE
$(STD_DATETIME_DATE Date)DATE
$(STD_DATETIME_DATE TimeOfDay)TIME
$(STD_DATETIME_DATE Time)TIME
$(STD_DATETIME_DATE DateTime)DATETIME
mysql.types.TimestampTIMESTAMP
stringVARCHAR
char[]VARCHAR
(u)byte[]SIGNED TINYBLOB
otherunsupported (throws)

Meta