Skip to main content

Prepares PostgreSQL queries for execution in more useful Pythonic way. Not ORM.

Project description

Prepares PostgreSQL queries for execution in more useful Pythonic way. Not ORM.

>>> from pssq import Q
>>> Q.SELECT().FROM("foo").WHERE(a=5).END()
('SELECT * FROM "foo" WHERE "a"=$1', (5,))

>>> Q.INSERT("foo").SET(a=5, b=7).END()
('INSERT INTO "foo" ("a", "b") VALUES ($1, $2)', (5, 7))

>>> Q.INSERT("foo").SET(q=Q.Unsafe("4"), w=Q.Unsafe("now()"), a=5).END()
('INSERT INTO "foo" ("q", "w", "a") VALUES (4, now(), $1)', (5,))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pssq-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file pssq-0.0.1.tar.gz.

File metadata

  • Download URL: pssq-0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pssq-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1b18870c4a21582344aa051e566926f8cabdb581a45a138903b33af2a2d0f686
MD5 455cdc8613aa35f4ec391b83b3ae8a0f
BLAKE2b-256 4416c31c8a9ec311d55564a5538409e4862417167c40ee771557f7be4c99c851

See more details on using hashes here.

Supported by

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