mysql.safe.connection

Connect to a MySQL/MariaDB server (safe version).

This is the @safe API for the Connection type. It publicly imports mysql.impl.connection, and also provides the safe version of the API for preparing statements.

Note that the common pieces of the connection are documented and currently reside in mysql.impl.connection. Please see this module for documentation of the connection object.

$(SAFE_MIGRATION)

Public Imports

mysql.impl.connection
public import mysql.impl.connection;
Undocumented in source.

Members

Functions

prepare
SafePrepared prepare(Connection conn, const(char[]) sql)

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

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

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

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

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

Meta