Connector/Python C 扩展的标准连接池?

Standard Connection Pool for Connector/Python C Extension?

我正在使用 MySQL 的 Connector/Python C 扩展 ,因为我需要访问结果。 C 扩展通过“fetch_fields()”调用提供此功能,这在基本 Connector/Python 中似乎不可用(无 C 扩展)。

Connector/Python配备了连接池机制;例如MySQLConnectionPool。但是,我还没有找到 C 扩展的类似功能。

C扩展是否有标准的池化机制?我考虑过使用 MySQLConnectionPool 的添加连接方法来使用 C 扩展连接填充连接池,但是 C 扩展的接口与标准接口完全不同,所以我我希望这会引起问题。

Connector/Python 中的 C 扩展尚不支持连接池。 应该实施 CMySQLConnectionPool。破解 MySQLConnectionPool 以使用 CMySQLConnection 对象应该行不通。