MysqlDatabase

Undocumented in source.

Constructors

this
this(string host, ushort port, ubyte characterSet)
Undocumented in source.

Members

Functions

alterTableColumn
void alterTableColumn(string table, InitInfo.Field field, bool typeChanged, bool nullableChanged)
Undocumented in source. Be warned that the author may not have intended to support it.
closeImpl
void closeImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
connectImpl
void connectImpl(string db, string user, string password)
Undocumented in source. Be warned that the author may not have intended to support it.
escapeBinary
string escapeBinary(ubyte[] value)
Undocumented in source. Be warned that the author may not have intended to support it.
generateField
string generateField(InitInfo.Field field)
Undocumented in source. Be warned that the author may not have intended to support it.
getTableInfo
TableInfo[string] getTableInfo(string table)
Undocumented in source. Be warned that the author may not have intended to support it.
insertInto
Result insertInto(string table, string[] names, string[] fields, string[] primaryKeys)
Undocumented in source. Be warned that the author may not have intended to support it.
query
void query(string query)
Undocumented in source. Be warned that the author may not have intended to support it.
querySelect
Result querySelect(string query)
Undocumented in source. Be warned that the author may not have intended to support it.
randomFunction
string randomFunction()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

serverVersion
string serverVersion [@property getter]

Gets MySQL server's version as indicated in the handshake process by the server.

Inherited Members

From SqlDatabase

query
void query(string )

Runs a query without receiving anything back. Note that running just this method may break some implementations.

querySelect
Result querySelect(string )

Runs a select query and returns the result. This method does not break the flow of the protocol like query does. This method is intended for usage with complex queries.

initImpl
void initImpl(InitInfo initInfo)
Undocumented in source. Be warned that the author may not have intended to support it.
getTableInfo
TableInfo[string] getTableInfo(string table)
TableInfo
struct TableInfo
Undocumented in source.
generateField
string generateField(InitInfo.Field field)
Undocumented in source.
createTable
void createTable(string table, string[] fields)
Undocumented in source. Be warned that the author may not have intended to support it.
alterTableColumn
void alterTableColumn(string table, InitInfo.Field field, bool typeChanged, bool nullableChanged)
Undocumented in source.
alterTableAddColumn
void alterTableAddColumn(string table, InitInfo.Field field)
Undocumented in source. Be warned that the author may not have intended to support it.
alterTableDropColumn
void alterTableDropColumn(string table, string column)
Undocumented in source. Be warned that the author may not have intended to support it.
selectImpl
Result selectImpl(SelectInfo selectInfo, Select select)
Undocumented in source. Be warned that the author may not have intended to support it.
insertImpl
Result insertImpl(InsertInfo insertInfo)
Undocumented in source. Be warned that the author may not have intended to support it.
insertInto
Result insertInto(string table, string[] names, string[] fields, string[] primaryKeys)
Undocumented in source.
updateImpl
void updateImpl(UpdateInfo updateInfo, Clause.Where where)
Undocumented in source. Be warned that the author may not have intended to support it.
deleteImpl
void deleteImpl(string table, Clause.Where where)
Undocumented in source. Be warned that the author may not have intended to support it.
dropIfExists
void dropIfExists(string table)
Undocumented in source. Be warned that the author may not have intended to support it.
drop
void drop(string table)
Undocumented in source. Be warned that the author may not have intended to support it.
stringifyStatements
string stringifyStatements(Clause.Where.GenericStatement statement)
Undocumented in source. Be warned that the author may not have intended to support it.
operatorToString
string operatorToString(Clause.Where.Operator operator)
Undocumented in source. Be warned that the author may not have intended to support it.
glueToString
string glueToString(Clause.Where.Glue glue)
Undocumented in source. Be warned that the author may not have intended to support it.
randomFunction
string randomFunction [@property getter]
Undocumented in source.
escapeString
string escapeString(string value)
Undocumented in source. Be warned that the author may not have intended to support it.
escapeDate
string escapeDate(std.datetime.Date value)
Undocumented in source. Be warned that the author may not have intended to support it.
escapeDateTime
string escapeDateTime(std.datetime.DateTime value)
Undocumented in source. Be warned that the author may not have intended to support it.
escapeTime
string escapeTime(std.datetime.TimeOfDay value)
Undocumented in source. Be warned that the author may not have intended to support it.
Prepared
struct Prepared

Utilities for prepared statements.

Meta