It seems to work fine. This would be more elegant:
class SQLDB:
...
def executesql(self, query, description=False):
...
if description:
return self._cursor.description, self._cursor.fetchall()
return self._cursor.fetchall()
I don't like accessing _cursor from outside SQLDB. Is every database
module you wrap DBAPI 2.0 compliant enough to do this?
ae
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---