constants Package¶
constants
Package¶
CLIENT
Module¶
MySQL CLIENT constants
These constants are used when creating the connection. Use bitwise-OR (|) to combine options together, and pass them as the client_flags parameter to MySQLdb.Connection. For more information on these flags, see the MySQL C API documentation for mysql_real_connect().
CR
Module¶
MySQL Connection Errors
Nearly all of these raise OperationalError. COMMANDS_OUT_OF_SYNC raises ProgrammingError.
ER
Module¶
MySQL ER Constants
These constants are error codes for the bulk of the error conditions that may occur.
FIELD_TYPE
Module¶
MySQL FIELD_TYPE Constants
These constants represent the various column (field) types that are supported by MySQL.
FLAG
Module¶
MySQL FLAG Constants
These flags are used along with the FIELD_TYPE to indicate various properties of columns in a result set.
REFRESH
Module¶
MySQL REFRESH Constants
These constants seem to mostly deal with things internal to the MySQL server. Forget you saw this.