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
.. _create_engine() arguments:
http://www.sqlalchemy.org/docs/04/dbengine.html#dbengine_establishing
.. _collective.transmogrifier:
https://pypi.python.org/pypi/collective.transmogrifier
Changelog
=========
1.0.1 - 2008-09-17
------------------
* The keys in the returned dictionary need to be normal strings.
[fschulze, soerensigfusson]
1.0 - 2008-05-22
----------------
* Initial release
[wichert, mj]
============
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
.. _create_engine() arguments:
http://www.sqlalchemy.org/docs/04/dbengine.html#dbengine_establishing
.. _collective.transmogrifier:
https://pypi.python.org/pypi/collective.transmogrifier
Changelog
=========
1.0.1 - 2008-09-17
------------------
* The keys in the returned dictionary need to be normal strings.
[fschulze, soerensigfusson]
1.0 - 2008-05-22
----------------
* Initial release
[wichert, mj]
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
File details
Details for the file transmogrify.sqlalchemy-1.0.1.tar.gz
.
File metadata
- Download URL: transmogrify.sqlalchemy-1.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e951bdf3766f89ef17eba04b666edf83c4a027302306fea586267e10c826809 |
|
MD5 | e4e2952e1d478b230ac936a06e4c49e0 |
|
BLAKE2b-256 | 354dd7217190b3054e8a1edb46eb758247b8b86bb01e6a46da968ecaf290b46c |