用于zope3的sqlalchemy集成包
ztfy.alchem的Python项目详细描述
内容
What is ztfy.alchemy ?
alchemy是一个zope3包,可用于将zope3应用程序与sqlalchemy连接起来。
主要功能包括:
- sqlalchemy事务与zope3事务管理器的集成
- 通过geotypes包注册postgresql几何数据类型(postgis)。
大多数代码片段基于zope.sqlalchemy、z3c.sqlalchemy和z3c.zalchemy元素以及 源代码,处理postgis数据类型的元素除外。
How to use ztfy.alchemy ?
#待办事项:待写…
Changelog
0.3.6
- added “close_all_connections” function in ztfy.alchemy.engine module. This function should be called in any scheduler task in an after-commit hook to be sure that all databases connections are correctly closed when the task ends
0.3.5
- replace “@listens_for” decorator with “listen” calls in connections events listeners
0.3.4
- added connections cleaning thread to invalidate connections which are still unused five minutes after begin checked-in to connections pool
0.3.3
- small changes in session management with a new argument allowing to create a session without integrating it in the Zope transaction’s scoped session
- corrected parent’s call in GeometryLINESTRING constructor
0.3.2
- small changes in session management
- remove thread-local sessions store
0.3.1
- handle aliases in session management via new getSession() function “alias” argument
0.3.0
- add new getUserSession function which can accept an existing session as input argument
- removed GeoTypes dependency
0.2.5
- changed package source layout
0.2.4
- added SQLAlchemy engines vocabulary
0.2.3
- updated package dependencies
0.2.2
- changed import of threading.local module
0.2.1
- merged updates from z3c.zalchemy parent package
0.2
- switched to ZTK-1.1.2
0.1.1
- add “pool_recycle” attribute to IEngineDirective and IAlchemyEngineUtility interfaces
- use properties in AlchemyEngineUtility
- updated locales
0.1
- initial release