Connecting
Connecting with the cdata.db2 Module:
The connector's module is used directly to establish a connection with the data source. It does this by using a connection string as its argument. For example:import cdata.db2 as mod conn = mod.connect("Server=10.0.1.2;Port=50000;User=admin;Password=admin;Database=test")
Once the connection is created, you can use it to execute subsequent SQL queries.