Try to use "twisted.enterprise.adbapi" accessing database nonblockingly in Twisted (failed)
来源:互联网 发布:淘宝网上的汽车能买吗 编辑:程序博客网 时间:2024/05/20 12:51
- Download pyPgSQL from the following website:
http://sourceforge.net/projects/mysql-python/?source=recommended
- Extract it into a file, and Install at current path:
$ sudo python setup.py install
- A nice introduction of twisted.internet.defer
http://ezyang.com/twisted/
- Test procedure:
I am first trying to still use the old API but with non-blocking mode.
cp = adbapi.ConnectionPool("pg", dbname="mydb", host="143.89.46.81",user="dbcreator",passwd="nifti")
cp .connect()
self.conn=cp.connect()
self.conn=adbapi.ConnectionPool("pg", dbname="mydb", host="143.89.46.81",user="dbcreator",passwd="nifti")
self.conn.connect()
self.conn.query => self.conn.runQuery("SELECT age FROM users WHERE name = ?", user)
cp = adbapi.ConnectionPool("pg", dbname="mydb", host="143.89.46.81",user="dbcreator",passwd="nifti")
c=cp.connect()
c.query()
cp.runQuery()
\lo_list- PROBLEM: how to use pypgsql to operate large object!
TRIES:
http://pypgsql.sourceforge.net/README.html
you need to check how to use large object in PypgSQL,
search for "large".
you will get to the api,
then change all related APIs in topicdb_twist.py.(the function names are the APIs.)
STILL NOT SOLVED:
"to implement the large object operation with postgresql under pypgsql."
0 0
- Try to use "twisted.enterprise.adbapi" accessing database nonblockingly in Twisted (failed)
- Twisted adbapi的使用
- Twisted adbapi:Twisted 关系数据库支持
- 使用Twisted的adbapi操作数据库
- 数据库链接管理类Twisted adbapi.ConnectionPool
- twisted
- Twisted
- Twisted
- Deferred Object In Twisted
- NetString in Twisted
- oracle to many database link in use
- An Introduction to Asynchronous Programming and Twisted
- Going asynchronous: from Flask to Twisted Klein
- twisted helloworld
- 说说 Twisted
- 安装Twisted
- twisted 地址
- Twisted 阐述
- 今天的天气
- java第一课环境变量设置和第一个程序
- android的activity的生命周期
- Objective-C语法之动态类型(isKindOfClass, isMemberOfClass,id)等
- PHP魔术方法之__set()和__get()
- Try to use "twisted.enterprise.adbapi" accessing database nonblockingly in Twisted (failed)
- Linux文件共享(五)——线程共享文件
- OpenCV 自带例程总结
- Java多线程实现多个客户端同时与服务器进行TCP通信
- 摘录TCP,ttl计算更新方法
- Codeforces 388A Fox and Box Accumulation(贪心)
- Linux-2.6.32.2内核在mini2440上的移植(四)---根文件系统制作(1)
- leetCode刷题笔记(六)
- bzoj2743 HEOI2012采花 离线预处理