<commit_before>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': 'myproject',
        'SERVER': 'ifxserver',
        'USER' : 'testuser',
        'PASSWORD': '<PASSWORD>',
    }


Corresponding informixdb connection:
------------------------------------
::

    conn = informixdb.connect('d_1463994398130014@ifxserver1', 'xblebtlh', 'BbynQOHesR')
<commit_msg>add more detail for python connection example<commit_after>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': 'myproject',
        'SERVER': 'ifxserver',
        'USER' : 'testuser',
        'PASSWORD': '<PASSWORD>',
    }


Corresponding informixdb python connection:
-------------------------------------------
::

    import informixdb
    conn = informixdb.connect('myproject@ifxserver', 'testuser', '<PASSWORD>')
    cursor = conn.cursor()
    cursor.execute('select tabname from systables')
    cursor.fetchall()
    cursor.close()
    conn.close()

{'fraction_non_alphanumeric': 0.1662809917355372, 'fraction_numerical': 0.011570247933884297, 'mean_word_length': 2.791979949874687, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3766044', 'n_tokens_mistral': 873, 'n_tokens_neox': 795, 'n_words': 268}