djangonauts / djorm-ext-pool

DB-API2 connection pool for Django (for postgresql, mysql and sqlite)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

djorm-ext-pool

DB-API2 connection poolling for Django.

Description

Is a simple application that uses the excellent SQLAlchemy connection pool to incorporate a it to django. All work is based on https://github.com/heroku-python/django-postgrespool/

Note: currently only been tested with postgresql, but in theory it should work perfectly with mysql and sqlite3.

How to install

Run python setup.py install to install, or place djorm_pool on your Python path.

You can also install it with: pip install djorm-ext-pool

How use it?

Very simple, put djorm_pool in your INSTALLED_APPS settings:

You can add options to sqlalchemy connection pool adding them in the settings "DJORM_POOL_OPTIONS".

Example:

Also, can activate the pessimistic connection handling with DJORM_POOL_PESSIMISTIC:

About

DB-API2 connection pool for Django (for postgresql, mysql and sqlite)

License:Other


Languages

Language:Python 100.0%