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
, 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
. Please see this module for documentation of
the connection object.
See the Safe Migration document for more details.
Functions
Name | Description |
---|---|
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. |