Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 619 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 619 Bytes

SQLAlchemy Print Query

Build Status PyPI version PyPI downloads

Install

pip install 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';
>>>