SQLAlchemy Print Query
Project description
SQLAlchemy Print Query
Install
pip install git+https://github.com/evangilo/sqlalchemyp#egg=sqlalchemyp
Usage
>>> from sqlalchemyp import print_sql
>>> print_sql(DBSession.query(Hero).filter_by(name='Spider-Man'), 'postgresql')
SELECT hero.id,
hero.name
FROM hero
WHERE hero.name = 'Spider-Man';
>>>
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
sqlalchemyp-0.0.2.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for sqlalchemyp-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ed5574251facc27bc6e2b99c27eb23cdade26eda66f098a0677286b44f1a66c |
|
MD5 | 9ab491eeaf05f4662b80e3da32da172a |
|
BLAKE2b-256 | c1be02b5d974054903348b438b2acdb01fa1be943cc7ebed85a35fb9f3d796d6 |