Interface and Operations / Connector
When users need to access external databases or third-party systems, besides implementing the access directly in code, they can also use the Connector feature provided by DataFlux Func.
Even without using connectors, users can also write their own Python scripts to access external databases and third-party systems
Connector List
Select the Connector tab in the left sidebar to display the list of all added connectors.
Using Connectors
After a connector has been added successfully, you can use the connector ID in scripts to obtain the operation object of the corresponding connector.
Suppose there is a Redis connector whose ID is specified as redis. The code to obtain its connector operation object is as follows:
| Python | |
|---|---|
1 2 3 | |
You can also copy the basic example code directly from the connector tooltip to reduce typing:
Reference Documentation
For details on how to use connectors in scripts, see the documentation Script Development / Connector Objects with DFF.CONN
Some connectors support subscribing to messages and executing functions. See the documentation Script Development / Connector Subscription