开发者

How to get the socket FD from MySQLdb connection

I开发者_如何学Go use MySQLdb to fetch data from mysql and I need the connected socket to do someting else。 Is there some way to get it ? Thanks !


From the documentation:

import MySQLdb
db=MySQLdb.connect(passwd="moonpie",db="thangs")

db is what you call your "connected socket"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜