首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 一个简单的Python DB-API 2适配器PostgreSQL

一个简单的Python DB-API 2适配器PostgreSQL

  • 资源大小:28.44 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: python postgresql db-api

资 源 简 介

ocpgdb is a Python DB-API 2 (aka pep-0249) adapter for PostgreSQL. The code is simple, modular and extensible, with most of the intelligence implemented in Python with only a small C wrapper around libpq. The module is used in several production systems, and while there is little documentation at this stage, most things work as described in pep-0249. Unlike most Python PG adapters, this module uses the newer binary PG protocol 3 - in many cases this protocol is faster and safer, although the protocol is less forgiving of implicit type-casting. As an example, other adapters will accept: curs.execute("SELECT * FROM foo WHERE bah > %s", "2006-1-1") whereas protocol 3 requires: curs.execute("SELECT * FROM foo WHERE bah > %s", datetime.datetime(2006,1,1)) or an explicit cast: curs.execute("SELECT * FROM foo WHERE bah

文 件 列 表

ocpgdb-2.0.1a2
setup.py
oclibpq
TODO
PKG-INFO
README
misc
ocpgdb
tests.py

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP