aiopgPython 的 PostgreSQL 异步驱动
aiopg 是一个使用 asyncio (PEP-3156/tulip) 框架开发的用来访问 PostgreSQL 数据库的 Python 开发库,封装了基于 Psycopg 数据库驱动程序的异步特性。
示例代码:
import asyncio from aiopg.pool import create_pool dsn = 'dbname=jetty user=nick password=1234 host=localhost port=5432' @asyncio.coroutine def test_select(): pool = yield from create_pool(dsn) with (yield from pool) as conn: cur = yield from conn.cursor() yield from cur.execute('SELECT 1') ret = yield from cur.fetchone() assert ret == (1,), ret asyncio.get_event_loop().run_until_complete(test_select())
评论
py-postgresqlPython的PostgreSQL驱动
py-postgresql是一组Python模块,为PostgreSQL的各个部分提供接口。值得注意
py-postgresqlPython的PostgreSQL驱动
0
py-postgresqlPython的PostgreSQL驱动
py-postgresql是一组Python模块,为PostgreSQL的各个部分提供接口。值得注意的是,它为查询PostgreSQL数据库提供了纯python驱动程序+C优化。它的特点:准备语句驱动
py-postgresqlPython的PostgreSQL驱动
0
txmongoMongoDB 的 Python 异步驱动
txmongo 是 MongoDB 的 Python 异步驱动。兼容 Python 2.6,2.7
txmongoMongoDB 的 Python 异步驱动
0
txmongoMongoDB 的 Python 异步驱动
txmongo是MongoDB的Python异步驱动。兼容Python2.6,2.7和PyPy。
txmongoMongoDB 的 Python 异步驱动
0
Asyncio MongoMongoDB 的异步 Python 驱动
AsyncioMongo是MongoDB的异步Python驱动,基于Python的asyncio。此项目基于TxMongo。特性支持asyncio(PEP3156)事件循环无依赖连接池
Asyncio MongoMongoDB 的异步 Python 驱动
0
PgNioJava 和 JVM 上的异步 PostgreSQL 客户端
PgNio 是一个用于 Java 和 JVM 的异步 PostgreSQL 客户端,旨在灵活地解决简
PgNioJava 和 JVM 上的异步 PostgreSQL 客户端
0