import ifxPy conn = ifxPy.connect("database=mydb;host=myhost;port=9088;server=ol_informix1170;protocol=onsoctcp", "user", "pass") | Informix Type | ODBC C Type | JDBC Java Type | .NET Type | |---------------|-------------|----------------|------------| | INTEGER | SQL_C_LONG | int | Int32 | | SMALLINT | SQL_C_SSHORT | short | Int16 | | DECIMAL(p,s) | SQL_C_NUMERIC | BigDecimal | decimal | | VARCHAR(n) | SQL_C_CHAR | String | string | | DATETIME YEAR TO SECOND | SQL_C_TIMESTAMP | java.sql.Timestamp | DateTime | | BYTE | SQL_C_BINARY | byte[] | byte[] | | TEXT | SQL_C_CHAR | java.sql.Clob | string (large) | | BLOB | SQL_C_BINARY | java.sql.Blob | byte[]/Stream | | BOOLEAN | SQL_C_BIT | boolean | bool |
The informixdb package (not actively maintained) or using ODBC via pyodbc . Modern approach: ifxPy (IBM’s Python driver – part of CSDK).
Lowest latency, direct access to database features (e.g., collections, row types). Cons: C-only, less portable, manual memory management. 3.2 ODBC Driver Standard: ODBC 3.8 compliant Connection String Example:
Informix, database driver, ODBC, JDBC, CSDK, connectivity, performance tuning, transaction isolation 1. Introduction IBM Informix is a robust relational database management system (RDBMS) known for its high concurrency, low administrative overhead, and TimeSeries capabilities. However, its effectiveness in modern applications depends critically on the underlying database driver. A driver translates application API calls (e.g., JDBC, ODBC) into the Informix wire protocol (SQLI or DRDA) and vice versa.
conn.Open();