Skip to content

Commit 1f46f6e

Browse files
committed
Update README.md for FlowSynx PostgreSQL Plugin
Enhanced clarity and detail in the README.md file for the FlowSynx PostgreSQL Plugin. Key updates include reformatting the title, expanding the plugin description, clarifying supported operations, and updating input parameters to include the `Data` property. Debugging tips have also been improved for better guidance. #7
1 parent b59005e commit 1f46f6e

File tree

2 files changed

+29
-37
lines changed

2 files changed

+29
-37
lines changed

README.md

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# FlowSynx PostgreSQL Plugin
1+
## FlowSynx PostgreSQL Plugin
22

33
The PostgreSQL Plugin is a pre-packaged, plug-and-play integration component for the FlowSynx engine. It enables executing PostgreSQL queries with configurable parameters such as connection strings, SQL templates, and runtime parameters. Designed for FlowSynx’s no-code/low-code automation workflows, this plugin simplifies database integration, data retrieval, and transformation tasks.
44

55
This plugin is automatically installed by the FlowSynx engine when selected within the platform. It is not intended for manual installation or standalone developer use outside the FlowSynx environment.
66

7-
---
8-
97
## Purpose
108

119
The PostgreSQL Plugin allows FlowSynx users to:
@@ -15,64 +13,55 @@ The PostgreSQL Plugin allows FlowSynx users to:
1513
- Perform data transformation and filtering inline using SQL.
1614
- Integrate PostgreSQL operations into automation workflows without writing code.
1715

18-
---
19-
2016
## Supported Operations
2117

22-
- **query**: Executes a SQL SELECT query and returns the result set as JSON.
23-
- **execute**: Executes a SQL command (INSERT, UPDATE, DELETE, etc.) and returns the number of affected rows.
24-
25-
---
18+
- **query**: Executes a SQL SELECT query and returns the result set as structured data.
19+
- **execute**: Executes a SQL command (INSERT, UPDATE, DELETE, etc.) and returns the number of affected rows (as log output).
2620

2721
## Plugin Specifications
2822

2923
The plugin requires the following configuration:
30-
- ConnectionString (string): **Required.** The PostgreSQL connection string used to connect to the database. Example:
24+
- `ConnectionString` (string): **Required.** The PostgreSQL connection string used to connect to the database. Example:
25+
3126
```
3227
Host=localhost;Port=5432;Username=postgres;Password=secret;Database=mydb
3328
```
3429

35-
---
36-
3730
## Input Parameters
3831

39-
The plugin accepts the following parameters:
32+
The plugin accepts the following parameters (as per the `InputParameter` model):
4033

41-
- `Operation` (string): **Required.** The type of operation to perform. Supported values are query and execute.
42-
- `Sql ` (string): **Required.** The SQL query or command to execute. Use parameter placeholders (e.g., @id, @name) for dynamic values.
34+
- `Operation` (string): **Required.** The type of operation to perform. Supported values are `query` and `execute`.
35+
- `Sql` (string): **Required.** The SQL query or command to execute. Use parameter placeholders (e.g., `@id`, `@name`) for dynamic values.
4336
- `Params` (object): Optional. A dictionary of parameter names and values to be used in the SQL template.
37+
- `Data` (object): Optional. Used for structured data operations (e.g., bulk/structured inserts or updates).
4438

4539
### Example input
4640

4741
```json
4842
{
4943
"Operation": "query",
5044
"Sql": "SELECT id, name, email FROM users WHERE country = @country",
51-
"Parameters": {
45+
"Params": {
5246
"country": "Norway"
5347
}
5448
}
5549
```
5650

57-
---
58-
5951
## Debugging Tips
6052

61-
- Ensure the ConnectionString is correct and the database is accessible from the FlowSynx environment.
62-
- Use parameter placeholders (@parameterName) in the SQL to prevent SQL injection and enable parameterization.
63-
- Validate that all required parameters are provided in the Parameters dictionary.
64-
- If a query returns no results, verify that your SQL WHERE conditions are correct and the target table contains matching data.
65-
66-
---
53+
- Ensure the `ConnectionString` is correct and the database is accessible from the FlowSynx environment.
54+
- Use parameter placeholders (`@parameterName`) in the SQL to prevent SQL injection and enable parameterization.
55+
- Validate that all required parameters are provided in the `Params` dictionary.
56+
- If a query returns no results, verify that your SQL `WHERE` conditions are correct and the target table contains matching data.
57+
- For structured data operations, ensure the `Data` property is set to a valid object or collection as expected by the operation.
6758

6859
## Security Notes
6960

7061
- SQL commands are executed using parameterized queries to prevent SQL injection.
7162
- The plugin does not store credentials or data outside of execution unless explicitly configured.
7263
- Only authorized FlowSynx platform users can view or modify configurations.
7364

74-
---
75-
7665
## License
7766

7867
© FlowSynx. All rights reserved.

src/README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ The PostgreSQL Plugin allows FlowSynx users to:
1919

2020
## Supported Operations
2121

22-
- **query**: Executes a SQL SELECT query and returns the result set as JSON.
23-
- **execute**: Executes a SQL command (INSERT, UPDATE, DELETE, etc.) and returns the number of affected rows.
22+
- **query**: Executes a SQL SELECT query and returns the result set as structured data.
23+
- **execute**: Executes a SQL command (INSERT, UPDATE, DELETE, etc.) and returns the number of affected rows (as log output).
2424

2525
---
2626

2727
## Plugin Specifications
2828

2929
The plugin requires the following configuration:
30-
- ConnectionString (string): **Required.** The PostgreSQL connection string used to connect to the database. Example:
30+
- `ConnectionString` (string): **Required.** The PostgreSQL connection string used to connect to the database. Example:
31+
3132
```
3233
Host=localhost;Port=5432;Username=postgres;Password=secret;Database=mydb
3334
```
@@ -36,19 +37,20 @@ Host=localhost;Port=5432;Username=postgres;Password=secret;Database=mydb
3637

3738
## Input Parameters
3839

39-
The plugin accepts the following parameters:
40+
The plugin accepts the following parameters (as per the `InputParameter` model):
4041

41-
- `Operation` (string): **Required.** The type of operation to perform. Supported values are query and execute.
42-
- `Sql ` (string): **Required.** The SQL query or command to execute. Use parameter placeholders (e.g., @id, @name) for dynamic values.
42+
- `Operation` (string): **Required.** The type of operation to perform. Supported values are `query` and `execute`.
43+
- `Sql` (string): **Required.** The SQL query or command to execute. Use parameter placeholders (e.g., `@id`, `@name`) for dynamic values.
4344
- `Params` (object): Optional. A dictionary of parameter names and values to be used in the SQL template.
45+
- `Data` (object): Optional. Used for structured data operations (e.g., bulk/structured inserts or updates).
4446

4547
### Example input
4648

4749
```json
4850
{
4951
"Operation": "query",
5052
"Sql": "SELECT id, name, email FROM users WHERE country = @country",
51-
"Parameters": {
53+
"Params": {
5254
"country": "Norway"
5355
}
5456
}
@@ -58,10 +60,11 @@ The plugin accepts the following parameters:
5860

5961
## Debugging Tips
6062

61-
- Ensure the ConnectionString is correct and the database is accessible from the FlowSynx environment.
62-
- Use parameter placeholders (@parameterName) in the SQL to prevent SQL injection and enable parameterization.
63-
- Validate that all required parameters are provided in the Parameters dictionary.
64-
- If a query returns no results, verify that your SQL WHERE conditions are correct and the target table contains matching data.
63+
- Ensure the `ConnectionString` is correct and the database is accessible from the FlowSynx environment.
64+
- Use parameter placeholders (`@parameterName`) in the SQL to prevent SQL injection and enable parameterization.
65+
- Validate that all required parameters are provided in the `Params` dictionary.
66+
- If a query returns no results, verify that your SQL `WHERE` conditions are correct and the target table contains matching data.
67+
- For structured data operations, ensure the `Data` property is set to a valid object or collection as expected by the operation.
6568

6669
---
6770

0 commit comments

Comments
 (0)