GithubHelp home page GithubHelp logo

highway900 / django_informixdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leowa/django_informixdb

0.0 2.0 1.0 29 KB

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

License: Apache License 2.0

Python 100.00%

django_informixdb's Introduction

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': 'passw0rd',
}

Corresponding informixdb python connection:

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

django_informixdb's People

Contributors

highway900 avatar leowa avatar neomap avatar

Watchers

 avatar  avatar

Forkers

commoncode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.