8 Feb
2002
8 Feb
'02
11:47 a.m.
Hi all, Is it possible to use cursors and their functions (dictfetchall, fetchone...) with zpsycopg connection ?
Easy stupid :) : conn = getattr(self, self.connection_id) db = conn().db curs = db.cursor() curs.execute("select * from support limit 2") return "%s" % curs.dictfetchall() Now, how about managing transactions ?