Nom de la classe | Description |
CharacterSet | MySQL supported character sets and collations [extrait de CharacterSet.__doc__] |
ClientFlag | MySQL Client Flags [extrait de ClientFlag.__doc__] |
FieldFlag | MySQL Field Flags [extrait de FieldFlag.__doc__] |
FieldType | MySQL Field Types [extrait de FieldType.__doc__] |
MySQLConnection | Connection to a MySQL Server [extrait de MySQLConnection.__doc__] |
RefreshOption | MySQL Refresh command options [extrait de RefreshOption.__doc__] |
Nom de la classe d'exception | Description |
DatabaseError | Exception for errors related to the database [extrait de DatabaseError.__doc__] |
DataError | Exception for errors reporting problems with processed data [extrait de DataError.__doc__] |
Error | Exception that is base class for all other error exceptions [extrait de Error.__doc__] |
IntegrityError | Exception for errors regarding relational integrity [extrait de IntegrityError.__doc__] |
InterfaceError | Exception for errors related to the interface [extrait de InterfaceError.__doc__] |
InternalError | Exception for errors internal database errors [extrait de InternalError.__doc__] |
NotSupportedError | Exception for errors when an unsupported database feature was used [extrait de NotSupportedError.__doc__] |
OperationalError | Exception for errors related to the database's operation [extrait de OperationalError.__doc__] |
PoolError | Exception for errors relating to connection pooling [extrait de PoolError.__doc__] |
ProgrammingError | Exception for errors programming errors [extrait de ProgrammingError.__doc__] |
Warning | Exception for important warnings [extrait de Warning.__doc__] |
Signature de la fonction | Description |
connect(*args, **kwargs) | Create or get a MySQL connection object [extrait de connect.__doc__] |
custom_error_exception(error=None, exception=None) | Define custom exceptions for MySQL server errors [extrait de custom_error_exception.__doc__] |
DateFromTicks(ticks) | |
read_option_files(**config) | |
TimeFromTicks(ticks) | |
TimestampFromTicks(ticks) |
Nom de la variable globale | Valeur |
apilevel | 2.0 |
BINARY | <mysql.connector.dbapi._DBAPITypeObject object at 0x7f40cb59af50> |
DATETIME | <mysql.connector.dbapi._DBAPITypeObject object at 0x7f40cb59b010> |
DEFAULT_CONFIGURATION | {'database': None, 'user': '', 'password': '', 'host': '127.0.0.1', 'port': 3306, 'unix_socket': None, 'use_unicode': True, 'charset': 'utf8mb4', 'collation': None, 'converter_class': None, 'autocommit': False, 'time_zone': None, 'sql_mode': None, 'get_warnings': False, 'raise_on_warnings': False, 'connection_timeout': None, 'client_flags': 0, 'compress': False, 'buffered': False, 'raw': False, 'ssl_ca': None, 'ssl_cert': None, 'ssl_key': None, 'ssl_verify_cert': False, 'ssl_verify_identity': False, 'ssl_cipher': None, 'tls_ciphersuites': None, 'ssl_disabled': False, 'tls_versions': None, 'passwd': None, 'db': None, 'connect_timeout': None, 'dsn': None, 'force_ipv6': False, 'auth_plugin': None, 'allow_local_infile': False, 'allow_local_infile_in_path': None, 'consume_results': False, 'conn_attrs': None, 'dns_srv': False, 'use_pure': False, 'krb_service_principal': None} |
ERROR_NO_CEXT | MySQL Connector/Python C Extension not available |
HAVE_CEXT | False |
HAVE_DNSPYTHON | False |
NUMBER | <mysql.connector.dbapi._DBAPITypeObject object at 0x7f40cb59afb0> |
paramstyle | pyformat |
ROWID | <mysql.connector.dbapi._DBAPITypeObject object at 0x7f40cb59b070> |
STRING | <mysql.connector.dbapi._DBAPITypeObject object at 0x7f40cb59aef0> |
threadsafety | 1 |
Nom de l'alias | Définition ciblée |
Binary | bytes |
Connect | connect |
Date | date |
Time | time |
Timestamp | datetime |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :