Using SQL in Nyno Workflows

Extension: nyno-sql

Core Goal: Execute an SQL query against a PostgreSQL database and store the result in the workflow context.

workflow:
  - step: nyno-sql
    args:
      - "SELECT * FROM users WHERE id = $1"
      - [123]

Input options:

Output

Input examples

For individual step inside any workflow:

- step: nyno-sql
  args:
    - "SELECT * FROM users WHERE id = $1"
    - [123]

Full Workflow Example

context:
  QUERY: "SELECT * FROM users WHERE status = $1"
  PARAMS: ["active"]
workflow:
  - step: nyno-sql
    args:
      - ${QUERY}
      - ${PARAMS} # optional