Popular recipes by Valentine Gogichashvili http://code.activestate.com/recipes/users/4172185/2010-02-26T02:57:49-08:00ActiveState Code RecipesGlobal database configuration and context aware connection pool extention for psycopg2 (Python)
2010-02-26T02:57:49-08:00Valentine Gogichashvilihttp://code.activestate.com/recipes/users/4172185/http://code.activestate.com/recipes/577072-global-database-configuration-and-context-aware-co/
<p style="color: grey">
Python
recipe 577072
by <a href="/recipes/users/4172185/">Valentine Gogichashvili</a>
(<a href="/recipes/tags/database/">database</a>, <a href="/recipes/tags/postgres/">postgres</a>).
Revision 2.
</p>
<p>This extention makes it possible to hold a global configuration of all needed database, and access this databases using a special context aware named connection pools. The context can help to automate transaction commits and rollbacks and return special connection cursors in the context.
See module and class docs for more information.</p>