> 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 ?
_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )