Tagged Questions
2
votes
1answer
403 views
Is __enter__ and __exit__ behaviour for connection objects specified in the Python database API?
Background
I recently discovered the Python with keyword and started seeing its potential usefulness for more prettily handling some scenarios where I'd previously have used try: ... finally: ... ...
3
votes
2answers
2k views
MySQLdb with multiple transaction per connection
Is it okay to use a single MySQLdb connection for multiple transactions without closing the connection between them? In other words, something like this:
conn = MySQLdb.connect(host="1.2.3.4", ...
1
vote
4answers
556 views
Python MYSQLdb documentation missing details?
I am trying to make sense of MySQLdb documentation. I was just wondering if there are things missing from there. For example, I am trying to see what "rowcount" (a constant) actually does, but am not ...