Establishing a Connection
The objects available within our connector are accessible from the "cdata.informix" module. To use the module's objects directly:
- Import the module as follows:
import cdata.informix as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("Server=10.0.1.2;Port=50000;User=admin;Password=admin;Database=test")
Connecting to Informix
To connect to Informix, set these properties:- AuthScheme: Specifies the type of user authentication to be performed at the server. There are two options:
- Host: The IP address of the server running Informix.
- Server: The name of the server running Informix.
- Port: The port the Informix server is listening on.
- Database: The name of the Informix database.
- User: The authenticating user.
- Password: The authenticating user's password.