mysql.connection

Connect to a MySQL/MariaDB server.

Members

Aliases

RCPrepared
alias RCPrepared = RefCounted!(RCPreparedPayload, RefCountedAutoInitialize.no)

Proof-of-concept ref-counted Prepared wrapper, just for testing, not really intended for actual use.

Classes

Connection
class Connection

A class representing a database connection.

Functions

prepare
Prepared prepare(Connection conn, string sql)

Submit an SQL command to the server to be compiled into a prepared statement.

prepareBackwardCompat
deprecated BackwardCompatPrepared prepareBackwardCompat(Connection conn, string sql)

This function is provided ONLY as a temporary aid in upgrading to mysql-native v2.0.0.

prepareFunction
Prepared prepareFunction(Connection conn, string name, int numArgs)

Convenience function to create a prepared statement which calls a stored function.

prepareProcedure
Prepared prepareProcedure(Connection conn, string name, int numArgs)

Convenience function to create a prepared statement which calls a stored procedure.

Structs

BackwardCompatPrepared
struct BackwardCompatPrepared

This is a wrapper over mysql.prepared.Prepared, provided ONLY as a temporary aid in upgrading to mysql-native v2.0.0 and its new connection-independent model of prepared statements. See the migration guide for more info.

PreparedServerInfo
struct PreparedServerInfo

Per-connection info from the server about a registered prepared statement.

ProtocolPrepared
struct ProtocolPrepared

Low-level comms code relating to prepared statements.

Variables

defaultClientFlags
SvrCapFlags defaultClientFlags;

The default mysql.protocol.constants.SvrCapFlags used when creating a connection.

Meta