You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add PostgreSQL plugin with query execution capabilities and documentation
* simplify Async queries execution
* Refactor PostgreSQL handler for readability
* readme updates to make it consistent with other plugin docs
* upgrade service
---------
Co-authored-by: ivan.hladush <ivan.hladush@pattern.com>
The **PostgreSQL Plugin** enables Heimdall to run SQL queries on configured PostgreSQL databases. It supports direct SQL, SQL files, batch execution, and both synchronous and asynchronous modes.
4
+
5
+
---
6
+
7
+
## 🧩 Plugin Overview
8
+
9
+
***Plugin Name:**`postgres`
10
+
***Execution Modes:** Synchronous (return_result: true) and Asynchronous (return_result: false)
11
+
***Use Case:** Running SQL queries (single or batch) against PostgreSQL databases
12
+
13
+
---
14
+
15
+
## ⚙️ Defining a Postgres Command
16
+
17
+
A Postgres command can specify execution mode and other preferences. Example:
18
+
19
+
```yaml
20
+
- name: postgres-0.0.1
21
+
status: active
22
+
plugin: postgres
23
+
version: 0.0.1
24
+
description: Execute queries against PostgreSQL databases
25
+
tags:
26
+
- type:postgres
27
+
cluster_tags:
28
+
- type:postgres
29
+
- data:local
30
+
```
31
+
32
+
---
33
+
34
+
## 🖥️ Cluster Configuration
35
+
36
+
Each Postgres cluster must define a `connection_string`:
0 commit comments