Provide workflow nodes with the ability to read and write databases.
简体中文 | English
DB-Client-Node is a plugin tool designed for Dify workflows, providing database operation nodes. It currently supports PostgreSQL databases.

To use in a Dify workflow:

Standard client nodes are used to execute DML statements such as and . Due to limitations in Dify’s tool plugin form interface, which does not support dynamic parameters, two variants are provided:
These nodes are identical except for the number of supported parameters.
Executing SQL Without Parameters
| Field | Value |
|---|---|
| SQL | |
| Parameter 0-N | Leave blank |
Executing SQL With Parameters
| Field | Value |
|---|---|
| SQL | |
| Parameter 0 | Corresponding to : Enter a literal value or use to select a node variable |
| Parameter 1 | Corresponding to : Enter a literal value or use to select a node variable |
Executing Dynamic SQL
| Field | Value |
|---|---|
| SQL | |
| Parameter 0 | Corresponding to : Enter a literal value or use to select a node variable |
| Parameter 1 | Corresponding to : Enter a literal value or use to select a node variable |
The batch client node is designed for bulk data insertion, utilizing the database’s batch submission mechanism to reduce I/O overhead and latency.
| Field | Value |
|---|---|
| SQL | |
| Parameter Object List | Select an upstream node variable containing a JSON-serialized list of parameter objects, e.g., or . Examples: - - |
| Key Names for Extraction | Leave blank if the parameter list is an array. For dictionary-type lists, provide a comma-separated list of keys to extract values (in order), e.g., |
For statements, the node provides the following return values:
Example Output:
For , , or statements, the node returns:
Example Output:
Contributions are welcome! To participate:
Please ensure your code adheres to the project’s style guidelines and includes appropriate tests.
This project is released under the Apache License 2.0. See the file for details.
For questions or support, please submit an issue in the repository.