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
Release files for sqlwitch 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqlwitch-0.2.tar.gz | 4.1 kB | Details |
Release files / sqlwitch-0.2.tar.gz
| Download URL | sqlwitch-0.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5f4e54fee14ea95ec92b30633f9923ad08667ec0a0efd4b45013d8bf61848f4
|
|
BLAKE2b-256 checksum How to use checksums |
ab85443331e72bc405790d6a6dd53a15276fbb3f7f2f2828721a1ac1b55f13e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |