Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evangilo/sqlalchemyp
https://github.com/evangilo/sqlalchemyp
sqlalchemy
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/evangilo/sqlalchemyp
- Owner: evangilo
- Created: 2019-07-04T18:58:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-11T14:09:58.000Z (over 5 years ago)
- Last Synced: 2024-10-08T17:28:53.421Z (about 1 month ago)
- Topics: sqlalchemy
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQLAlchemy Print Query
[![Build Status](https://travis-ci.org/evangilo/sqlalchemyp.svg?branch=master)](https://travis-ci.org/evangilo/sqlalchemyp)
[![PyPI version](https://img.shields.io/pypi/v/sqlalchemyp.svg)](https://pypi.python.org/pypi/sqlalchemyp)
[![PyPI downloads](https://img.shields.io/pypi/dm/sqlalchemyp.svg)](https://pypi.python.org/pypi/sqlalchemyp)# 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';
>>>
```