My favorites | Sign in
Project Logo
                
Search
for
Updated Aug 18, 2008 by leo.soto
Labels: Featured
DatabaseBackends  
django-jython database backends

Database Backends

Backends are implemented using the great Jython's zxJDBC package, which makes any database with a working JDBC driver accessible through the DB-API 2.0 specification. Thus, to use any backend from this project, you will also need the corresponding JDBC driver somewhere in your CLASSPATH.

PostgreSQL

Very stable, and tested against PostgreSQL v8.3 with the JDBC driver v8.3.603. To use it set DATABASE_ENGINE = 'doj.backends.zxjdbc.postgresql' in your Django project settings.

Compatibility with the Django builtin PostgreSQL backend

In most cases, you can use the same database on Django applicatioons running on CPython and Jython with the builtin 'postresql' (or 'postgresql_psycopg2') and this backend, respectively. The only exception is for IPAddressFields, where the original backend uses a inet field while we use a varchar one. This may change in the future, if/when the PostgreSQL JDBC driver make it easy to deal with inet fields from Java.

SQLite3

Experimental. By now, use it only if you are working on improving it. Or if you are adventurous.

See Also

DevelopingNewDatabaseBackends


Sign in to add a comment
Hosted by Google Code