mysql.unsafe.connection

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

This is the unsafe API for the Connection type. It publicly imports mysql.impl.connection, and also provides the unsafe version of the API for preparing statements. Note that unsafe prepared statements actually use safe code underneath.

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.

This module also contains the soon-to-be-deprecated BackwardCompatPrepared type.

$(SAFE_MIGRATION)

Public Imports

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

Members

Functions

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

Convenience functions.

prepareBackwardCompat
deprecated BackwardCompatPrepared prepareBackwardCompat(Connection conn, const(char[]) sql)

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

prepareBackwardCompatImpl
BackwardCompatPrepared prepareBackwardCompatImpl(Connection conn, const(char[]) sql)

Allow mysql-native tests to get around the deprecation message

prepareFunction
UnsafePrepared prepareFunction(Connection conn, string name, int numArgs)
prepareProcedure
UnsafePrepared prepareProcedure(Connection conn, string name, int numArgs)

Convenience functions.

Structs

BackwardCompatPrepared
struct BackwardCompatPrepared

This is a wrapper over mysql.unsafe.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.

Meta