sqlwitch offers idiomatic SQL generation on top of MySQLdb.
Project description
sqlwitch is a Python 2.5+ library that offers idiomatic SQL generation on top of MySQLdb. BSD-licensed.
Usage
with db.insert(into='foobars') as obj: obj.foo = 1 with db.select('foo, bar', from_='foobars'): db.where('foo = 1') with db.update('foobars') as changeset: changeset.foo = 2 db.where('foo = 1') with db.delete(from_='foobars'): db.where('foo = 2')
Setup
$ pip install sqlwitch # or $ easy_install sqlwitch # or $ cd sqlwitch-0.2; python setup.py install
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqlwitch-0.2.tar.gz
(4.1 kB
view hashes)