Skip to main content

A database driver for Django to connect to an informix db

Project description

django\_informixdb
==================

A database driver for Django to connect to an Informix database via
informixdb python module.

**Some limitations**:
- Do not support default values



Configure local environment
---------------------------

The following environment variable should exist: - INFORMIXDIR -
INFORMIXSERVER - INFROMIXSQLHOSTS
django\_informixdb
==================

A database driver for Django to connect to an Informix database via
informixdb python module.

**Some limitations**:
- Do not support default values



Configure local environment
---------------------------

The following environment variable should exist: - INFORMIXDIR -
INFORMIXSERVER - INFROMIXSQLHOSTS

You need to create a sqlhosts file configuring remote/local informix
server connection information like the following:

::

ifxserver onsoctcp xxx.yy.com 1234
local_ifxserver1 onsoctcp * 4567

Configure custom.py
-------------------

Django’s custom.py require the following format to connect to a informix
db:

::
'default': {
'ENGINE': 'django_informixdb',
'NAME': 'd_1463994398130014',
'SERVER': 'ifxserver1',
'USER' : 'xblebtlh',
'PASSWORD': 'BbynQOHesR',
}


Corresponding informixdb connection:
---------------------------------
::
conn = informixdb.connect('d_1463994398130014@ifxserver1', 'xblebtlh', 'BbynQOHesR')

You need to create a sqlhosts file configuring remote/local informix
server connection information like the following:

::

ifxserver onsoctcp xxx.yy.com 1234
local_ifxserver1 onsoctcp * 4567

Configure custom.py
-------------------

Django’s custom.py require the following format to connect to a informix
db:

::
'default': {
'ENGINE': 'django_informixdb',
'NAME': 'd_1463994398130014',
'SERVER': 'ifxserver1',
'USER' : 'xblebtlh',
'PASSWORD': 'BbynQOHesR',
}


Corresponding informixdb connection:
---------------------------------
::
conn = informixdb.connect('d_1463994398130014@ifxserver1', 'xblebtlh', 'BbynQOHesR')

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_informixdb-0.1.3-py2.py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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