接続の確立
コネクタ内で利用可能なオブジェクトは、"cdata.informix" モジュールからアクセスできます。モジュールのオブジェクトを直接使用するには:
- モジュールを以下のようにインポートします。
import cdata.informix as mod
- 接続を確立するには、以下のような適切な接続文字列を使用してコネクタオブジェクトからconnect() メソッドを呼び出します。
mod.connect("Server=10.0.1.2;Port=50000;User=admin;Password=admin;Database=test")
Connecting to Informix
Set the following properties to connect to Informix:- Server: Set this to the name of the server running Informix.
- Port: Set this to the port the Informix server is listening on.
- Database: Set this to the name of the Informix database.
- User: Set this to the username of a user allowed to access the database.
- Password: Set this to the password of a user allowed to access the database.