mysql-native v3.0.0

API Reference Home: [This Version] [Latest Version] [Other Versions]


Module mysql.connection

Connect to a MySQL/MariaDB server.

Functions

NameDescription
prepare(conn, sql) Submit an SQL command to the server to be compiled into a prepared statement.
prepareBackwardCompat(conn, sql) This function is provided ONLY as a temporary aid in upgrading to mysql-native v2.0.0.
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.

Classes

NameDescription
Connection A class representing a database connection.

Structs

NameDescription
BackwardCompatPrepared This is a wrapper over 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.

Global variables

NameTypeDescription
defaultClientFlags immutable(SvrCapFlags) The default SvrCapFlags used when creating a connection.