Skip to main content

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

Project details


Release history Release notifications | RSS feed

This version

0.2

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 details)

Uploaded Source

File details

Details for the file sqlwitch-0.2.tar.gz.

File metadata

  • Download URL: sqlwitch-0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sqlwitch-0.2.tar.gz
Algorithm Hash digest
SHA256 b5f4e54fee14ea95ec92b30633f9923ad08667ec0a0efd4b45013d8bf61848f4
MD5 4b24201cd5baf73505ba76b639969aca
BLAKE2b-256 ab85443331e72bc405790d6a6dd53a15276fbb3f7f2f2828721a1ac1b55f13e0

See more details on using hashes here.

Supported by

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