Deutsch Open-Source Weblog Resources Imprint

Python, Zope, Plone — Development and Consulting

What can we do for you?

Your contact
Andreas Jung will assist you. Please call
+49(0)70 71/79 33 76

Or use our Callback service

ZSQLAlchemy

A proof-of-concept integration of SQLAlchemy into Zope 2
Over the last few days I played around with SQLAlchemy in order to find ways out of the SQL hell. As a result (or call it a quick hack)  I implemented a  wrapper  ZSQLAlchemy that integrates SQLAlchemy with Zope 2. The wrapper (right now) only cares about the connection and transaction handling and exposes a session and a metadata object (which is usually enough for writing applications based on SQLAlchemy). The session participates in the transaction handling of Zope. This means that a Zope commit will also trigger a session.flush() operation.

ZSQLAlchemy will never be a higher-level framework (e.g. like the (over-engineered) Alchemist framework for Plone).  You can compare it with a standard Zope database adapter.

You might grab ZSQLAlchemy from svn.zope.org and play with it. At the moment it will work with Postgres only. Support for other databases (the ones supported by SQLAlchemy) can be added easily.
Artikelaktionen

The Zope & Plone
Expert Network

 
ZOPYX Ltd., Charlottenstr. 37/1, D-72070 Tübingen, Germany
Phone +49(0)70 71/79 33 76, Fax +49(0)70 71/7 93 68 40, Email: info@zopyx.com
Contact form Callback service Print page