Module 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.

See the Safe Migration document for more details.

Functions

NameDescription
prepare(conn, sql) Submit an SQL command to the server to be compiled into a prepared statement.
prepareFunction(conn, name, numArgs) Convenience function to create a prepared statement which calls a stored function.
prepareProcedure(conn, name, numArgs) Convenience function to create a prepared statement which calls a stored procedure.