【文件属性】:
文件名称:mysql-connector-python-async:基于mysql-connector-python进行异步访问
文件大小:56KB
文件格式:ZIP
更新时间:2021-06-19 22:06:11
Python
mysql-connector-python-async
基于 2.0.2 的 MySQL Python 连接器,对 asyncio 进行了一些更改。
大多数示例来自 mysql-connector-python,针对异步访问进行了修改。
基本示例:
import asyncio
import mysql_async.connector
@asyncio.coroutine
def main(config):
output = []
db = mysql_async.connector.Connect(**config)
yield from db.connect()
cursor = yield from db.cursor()
# Select it again and show it
stmt_select = "SHOW EN
【文件预览】:
mysql-connector-python-async-master
----.gitignore(718B)
----mysql_async()
--------__init__.py(22B)
--------connector()
----LICENSE(18KB)
----README.md(1KB)
----.idea()
--------misc.xml(236B)
--------encodings.xml(166B)
--------vcs.xml(182B)
--------scopes()
--------mysql-connector-python-async.iml(368B)
--------modules.xml(310B)
----example()
--------mysql_warnings.py(1KB)
--------getdata_by_socket.py(970B)
--------prepared_statements.py(2KB)
--------transaction.py(3KB)
--------microseconds.py(2KB)
--------multi_resualtsets.py(2KB)
--------dates.py(3KB)
--------getdata_by_http.py(894B)
--------multi_connections.py(3KB)