- authenticatevoid authenticate(Connection conn, ubyte[] greeting) 
- Undocumented in source. 
- buildAuthPacketubyte[] buildAuthPacket(Connection conn, ubyte[] token) 
- Undocumented in source. 
- consumeNullBitmapbool[] consumeNullBitmap(ubyte[] packet, uint fieldCount) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- consumeServerInfovoid consumeServerInfo(Connection conn, ubyte[] packet) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- ctorRowvoid ctorRow(Connection conn, ubyte[] packet, ResultSetHeaders rh, bool binary, MySQLVal[] _values, bool[] _nulls, string[] _names) 
- Undocumented in source. 
- enableMultiStatementsvoid enableMultiStatements(Connection conn, bool on) 
- Enable multiple statement commands. 
- execQueryImplbool execQueryImpl(Connection conn, ExecQueryImplInfo info, ulong ra) 
- bool execQueryImpl(Connection conn, ExecQueryImplInfo info) 
- Internal implementation for the exec and query functions. 
- getCmdResponseOKErrorPacket getCmdResponse(Connection conn, bool asString) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- getCommonCapabilitiesSvrCapFlags getCommonCapabilities(SvrCapFlags server, SvrCapFlags client) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- getNextRowSafeRow getNextRow(Connection conn) 
- Get the next mysql.result.Row of a pending result set. 
- getPacketubyte[] getPacket(Connection conn) 
- /// Moved here from Connection ///////////////////////////////// 
- immediateReleasePreparedvoid immediateReleasePrepared(Connection conn, uint statementId) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- makeTokenubyte[] makeToken(string password, ubyte[] authBuf) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- parseGreetingubyte[] parseGreeting(Connection conn) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- performRegisterPreparedServerInfo performRegister(Connection conn, const(char[]) sql) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- purgeResultulong purgeResult(Connection conn) 
- Flush any outstanding result set elements. 
- sendvoid send(MySQLSocket _socket, const(ubyte)[] packet) 
- Undocumented in source. 
- sendvoid send(MySQLSocket _socket, const(ubyte)[] header, const(ubyte)[] data) 
- Undocumented in source. 
- sendCmdvoid sendCmd(Connection conn, CommandType cmd, const(T)[] data) 
- Undocumented in source. 
- serverStatsstring serverStats(Connection conn) 
- Get a textual report on the server status. 
- setClientFlagsSvrCapFlags setClientFlags(SvrCapFlags serverCaps, SvrCapFlags capFlags) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
Internal - Low-level communications.
Consider this module the main entry point for the low-level MySQL/MariaDB protocol code. The other modules in mysql.protocol are mainly tools to support this module.
Previously, the code handling low-level protocol details was scattered all across the library. Such functionality has been factored out into this module, to be kept in one place for better encapsulation and to facilitate further cleanup and refactoring.
EXPECT MAJOR CHANGES to this entire mysql.protocol sub-package until it eventually settles into what will eventually become a low-level library containing the bulk of the MySQL/MariaDB-specific code. Hang on tight...
Next tasks for this sub-package's cleanup: - Reduce this module's reliance on Connection. - Abstract out a PacketStream to clean up getPacket and related functionality.