10bet网址
连接器和api手册
下载本手册

6.9连接器/Python API参考

本章包含Connector/Python的公共API参考。示例应考虑适用于Python 2.7、Python 3.1及更高版本。它们也可能适用于较旧的版本(如Python 2.4),除非它们使用了较新的Python版本中引入的特性。方法进行异常处理作为关键字是在Python 2.6中引入的,在Python 2.4中不起作用。

请注意

Python 2.7支持在Connector/Python 8.0.24中被移除。

下面的概述展示了mysql.connector用它的模块打包。目前,只对最终用户最有用的模块、类和方法进行了文档化。

mysql.connectorerrorcode errors connection constants conversion cursor dbapi locales eng client_error protocol utils