Skip to main content

Firebird backend for Django web framework

Project description

https://img.shields.io/pypi/v/django-firebird.svg https://caniusepython3.com/project/django-firebird.svg

Firebird SQL backend for django

Repo Note: The master branch is an in development version of django-firebird. This may be substantially different from the latest release of django-firebird

This version of django-firebird is working with fbd [1], therefore it will work only with firebird 2.x and later. The stable version corresponds with django 1.11 and live into stable/1.11.x branch. The current master branch of this repository is being developed under django 2.x. For previous Django stable version check the branch list of this repository. fbd is the official stable python-firebird driver, also it has support for python 3.

[1] http://pypi.python.org/pypi/fdb/

Requirements

Instalation

Using pip

pip install django-firebird

From repository

git clone git://github.com/maxirobaina/django-firebird.git

cd django-firebird

sudo python setup.py install

Manual Instalation

Instructions for Ubuntu/Debian I assume you have installed django from source with python setup.py install

cd /usr/local/lib/python2.7/dist-packages

sudo git clone git://github.com/maxirobaina/django-firebird.git

sudo ln -s django-firebird/firebird firebird

cd /usr/local/lib/python2.7/dist-packages/django/db/backends

sudo ln -s /usr/local/lib/python2.7/dist-packages/django-firebird/firebird

Configuration

Modify your setting.py

DATABASES = {
    'default': {
        'ENGINE' : 'firebird',
        'NAME' : '/var/lib/firebird/2.5/data/django_firebird.fdb', # Path to database or db alias
        'USER' : 'SYSDBA',           # Your db user
        'PASSWORD' : '*****',    # db user password
        'HOST' : '127.0.0.1',        # Your host machine
        'PORT' : '3050',             # If is empty, use default 3050
        #'OPTIONS' : {'charset':'ISO8859_1'}
    }
}

Known bugs and issues

  • Some database migrations doesn’t work by default. Sometimes is better make intermediate migrations for solve problems.

  • Some Query Expressions doesn’t work by default. We need to make some workaround, ie: Use Cast().

  • Combined duration expressions need more research. No all combination of expressions works.

Contributing

Code and issues is in GitHub:

https://github.com/maxirobaina/django-firebird

We also have a mailing list:

http://groups.google.com/group/django-firebird-dev

Legacy driver

Why the change from kinterbasdb to fdb?

If you want to know more about the differences between fdb and kinterbasdb you can look at:

http://thread.gmane.org/gmane.comp.db.firebird.python/185/focus=187

http://pythonhosted.org//fdb/differences-from-kdb.html

If you still use kinterbasdb, the original google code repository has an updated django-firebird 1.4.x LTS version.

https://github.com/mariuz/django-firebird-1.4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-firebird-1.11b1.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

django_firebird-1.11b1-py2.py3-none-any.whl (28.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-firebird-1.11b1.tar.gz.

File metadata

File hashes

Hashes for django-firebird-1.11b1.tar.gz
Algorithm Hash digest
SHA256 72ce8416bd31ba7a43679b73fbc6b5eb1deb07cfc3d92b926e25ba016b4e5c75
MD5 819d019a41f4e303c86512218bc54415
BLAKE2b-256 f6dede1bb6942333dfdc84f669d97982ff2ea82a6a6151dbf5573e2981f61eed

See more details on using hashes here.

File details

Details for the file django_firebird-1.11b1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_firebird-1.11b1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fca30731eb3eb86cc8d9ad0d52f92312b0ed79e560b4fa899001bad46c9f8899
MD5 2d99f3cc0da9fb89fd4f45c4def179a1
BLAKE2b-256 dba6ca12d43d40d07093640a9859613c6a03c3a8f9f50760729147e0c0c9bf22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page