PostgresResourceClient allows you to execute SQL queries against your PostgreSQL database resources.
Usage
Inputs
Theinvoke method accepts the following arguments:
The SQL query string to execute. Use
$1, $2, etc., for parameterized
queries.An array of values for the parameterized query.
A unique identifier for this operation, used for tracing and logging. Must
match
[a-zA-Z0-9][a-zA-Z0-9._:-]*.Optional timeout in milliseconds for the query execution.
Outputs
On success (ok: true), the result object contains:
Discriminator for the response type.
An array of objects representing the rows returned by the query.
The number of rows affected by the query (e.g., for INSERT, UPDATE, DELETE).