Script Development / Connector Object DFF.CONN
After creating a connector, you can use the built-in function DFF.CONN('...')
in your code to operate this connector. The method returns the specified connector operation object.
Example | |
---|---|
1 2 3 4 |
|
If the connector is configured with a default database, the query will be performed on the default database.
If the connector does not have a default database configured, or if you need to query a different database during the query, you can specify the database parameter when obtaining the connector operation object, like this:
Python | |
---|---|
1 |
|
Some databases do not support changing the database during a query. To operate on different databases, you can create multiple connectors.
For DataWay, you can specify the token
parameter when obtaining the connector operation object, like this:
Python | |
---|---|
1 |
|
Since connectors come in different types, the optional parameters and supported methods for each connector operation object may vary when using DFF.CONN(...)
.
For detailed APIs of specific types of connectors, refer to the respective documentation.