Skip to main content

SQL statement wrapper class

Project description

This module allows for easy wrapping of SQL tables, simple queries and their results in dictionary-like python datatype objects. Attn: MySQLdb is currently mandatory for this module! Example:

>>> res = myDB.Address.City["Oklahoma%"]
>>> len(res)
2
>>> for r in res:
...   print "%s: %s"%(r.Name, r.Phone)
John Doe: 0405-12345
Joe User: 0405-67890
>>> john = res[0]
>>> john.Phone = '0405-54321'

Project details


Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page