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
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,33 @@ $ make
54
54
55
55
This will compile the FDW (`steampipe_postgres_fdw.so`) along with the `control` and `sql` file in the `build-$PLATFORM` directory. This will install the compiled FDW into the default Steampipe installation directory (`~/.steampipe`) - if it exists.
56
56
57
+
### Building the FDW for a Single Plugin
58
+
59
+
If you want to build the FDW for a single steampipe plugin, follow these steps. This process allows you to build the Postgres Foreign Data Wrapper (FDW) specifically for one particular plugin and run it in standalone mode on any PostgreSQL database, without any reliance on Steampipe.
60
+
61
+
Make sure that you have the following installed in your system:
62
+
1.`Postgresql v14`
63
+
1.`go`
64
+
1.`gcc` for Linux
65
+
66
+
Steps:
67
+
1. Clone this repository onto your system
68
+
1. Change to the cloned directory
69
+
1. Run the following commands:
70
+
```
71
+
$ make standalone plugin="<plugin alias>"
72
+
```
73
+
Replace plugin alias with the alias or short name of your plugin.
74
+
75
+
This command will compile the FDW specifically for the chosen plugin, and the resulting binary, control file, and SQL files will be generated.
76
+
77
+
#### Example:
78
+
79
+
Suppose you want to build the FDW for a plugin with an alias `aws` from a GitHub repository located at https://github.com/turbot/steampipe-plugin-aws. You would run the following command:
80
+
```
81
+
$ make standalone plugin="aws"
82
+
```
83
+
57
84
### License
58
85
59
86
This open source library is licensed under the [GNU Affero General Public License v3](https://opensource.org/licenses/AGPL-3.0).
0 commit comments