This is the implementation of the IBM Informix data handler for MindsDB. IBM Informix is a product family within IBM’s Information Management division that is centered on several relational database management system (RDBMS) offerings. The Informix server supports object–relational models and (through extensions) data types that are not a part of the SQL standard. The most widely used of these are the JSON, BSON, time series, and spatial extensions, which provide both data type support and language extensions that permit high-performance domain-specific queries and efficient storage for data sets based on semi-structured, time series, and spatial data.Documentation Index
Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- To connect IBM Informix to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to IBM Informix.
Implementation
This handler is implemented usingIfxPy/IfxPyDbi, a Python library that allows you to use Python code to run SQL commands on the Informix database.
The required arguments to establish a connection are as follows:
useris the username associated with database.passwordis the password to authenticate your access.hostis the hostname or IP address of the server.portis the port through which TCP/IP connection is to be made.databaseis the database name to be connected.schema_nameis the schema name to get tables.serveris the name of server you want connect.logging_enableddefines whether logging is enabled or not. Defaults toTrueif not provided.
Usage
In order to make use of this handler and connect to the Informix database in MindsDB, the following syntax can be used:This integration uses
IfxPy. As it is in development stage, it can be install using pip install IfxPy. However, it doesn’t work with higher versions of Python, therefore, you have to build it from source.On Linux
On Linux
- This code downloads and extracts the
onedb-ODBCdriver used to make connection:
- Add enviroment variables in the
.bashrcfile:
- This code clones the
IfxPyrepo, builds a wheel, and installs it:
On Windows
On Windows
- This code downloads and extracts the
onedb-ODBCdriver used to make connection:
- Add an enviroment variable:
-
Add
%INFORMIXDIR%\binto the PATH environment variable. -
This code clones the
IfxPyrepo, builds a wheel, and installs it: