Feed data from SQLAlchemy into a transmogrifier pipeline
Project description
Introduction
This package implements a simple SQLAlchemy blueprint for collective.transmogrifier.
If you are not familiar with transmogrifier please read its documentation first to get a basic understanding of how you can use this package.
This package implements the ‘’transmogrify.sqlalchemy’’ blueprint which executes a SQL statement, generally a query, and feeds the return values from that query into the transmogrifier pipeline.
Configuration
A transmogrify.sqlalchemy blueprint takes two or more parameters:
- dsn
Connection information for the SQL database. The exact format is documented in the SQLAlchemy documentation for create_engine() arguments.
- query*
The SQL queries that will be executed. Any parameter starting with ‘query’ will be executed, in sorted order.
Example
This will feed all data from the menu table in a local postgres database into the pipeline:
[sqlite] blueprint=transmogrify.sqlalchemy dsn=postgres://scott:tiger@localhost:5432/mydatabase query1=SELECT * FROM menu WHERE id=1 query2=SELECT * FROM menu WHERE id>1
Changelog
1.0 - 2008-05-22
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for transmogrify.sqlalchemy-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26e05a8395fec842369ad3ca72645b1220ddf875354f10b24d6fd3350243a415 |
|
MD5 | b398037b9e7644ae940be0a6b0e8a90b |
|
BLAKE2b-256 | 7c9931853d9644c6c48dd0c66b45a7ebfa180acac382f22bf36468ec38e18f24 |