This module publicly imports mysql.unsafe.commands. Please see that module for more documentation.
This module publicly imports mysql.unsafe.connection. Please see that module for more documentation.
Escape special characters in MySQL strings.
Exceptions defined by mysql-native.
Retrieve metadata from a DB.
This module publicly imports mysql.unsafe.pool. Please see that module for more documentation.
This module publicly imports mysql.unsafe.prepared. Please see that module for more documentation.
This module publicly imports mysql.unsafe.result. Please see that module for more documentation.
Imports all of mysql-native (safe versions).
Structures for MySQL types not built-in to D/Phobos.
Imports all of mysql-native (unsafe versions).
MySQL | D |
---|---|
NULL | typeof(null) |
BIT | bool |
TINY | (u)byte |
SHORT | (u)short |
INT24 | (u)int |
INT | (u)int |
LONGLONG | (u)long |
FLOAT | float |
DOUBLE | double |
MySQL | D |
---|---|
TIMESTAMP | DateTime |
TIME | TimeOfDay |
YEAR | ushort |
DATE | Date |
DATETIME | DateTime |
MySQL | D |
---|---|
VARCHAR, ENUM, SET, VARSTRING, STRING, NEWDECIMAL | string |
TINYBLOB, MEDIUMBLOB, BLOB, LONGBLOB | ubyte[] |
TINYTEXT, MEDIUMTEXT, TEXT, LONGTEXT | string |
other | unsupported (throws) |
D | MySQL |
---|---|
typeof(null) | NULL |
bool | BIT |
(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.Timestamp | TIMESTAMP |
string | VARCHAR |
char[] | VARCHAR |
(u)byte[] | SIGNED TINYBLOB |
other | unsupported with Variant (throws) or MySQLVal (compiler error) |
Note: This by default imports the unsafe version of the MySQL API. Please switch to the safe version (import mysql.safe) as this will be the default in the future. If you would prefer to use the unsafe version, it is advised to use the import mysql.unsafe, as this will be supported for at least one more major version, albeit deprecated.
$(SAFE_MIGRATION)
Imports all of mysql-native.