[Twisted-Python] Mysql and adbapi
aft
aftnix at gmail.com
Mon Oct 20 05:55:03 MDT 2014
Hi,
I'm trying to run the following program :
from twisted.enterprise import adbapi
dbpool = adbapi.ConnectionPool("MySQLdb", "khalid_sultaln", "root", "mysql")
def xmlValues() :
return dbpool.runQuery("SELECt * from xml_vaules limit 1")
def printResult(l):
print type(l)
print l[0][0]
xmlValues().addCallback(printResult)
But its not printing anything. What exactly i'm doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20141020/4684ec1a/attachment.html>
More information about the Twisted-Python
mailing list