Am 01.11.2012 13:15, schrieb Christoph Zwerschke:
For pgdb, it's pretty clear, we should follow the example of
sqlite and cx_oracle which use them on the connection objection in order
to wrap everything in a transaction.

Need to comment myself as it's actually not so clear: Just noticed I had already implemented connections as context managers as part of #49, but differently, namely by letting the exit handler just close the connection. Luckily, that implementation has not yet been released so we can still change this.

So the question is, do we want to use the context manager for pgdb connections act like in pysqlite (and some other drivers) to wrap transaction, or do we want to let it just close the connection, and add an extra context handler for wrapping transactions (just as I have implemented it in the classic interface)?

Any opinions on that? I have also asked for feedback on the dbsig mailing list.

-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to