Skip to main content

Database Operations

The db step type executes PostgreSQL queries or Redis commands directly within your workflow.

PostgreSQL

Configuration

Set the connection string in workflow config:

INSERT with RETURNING

Extraction from Results

Query results are returned as an array of row objects:
Use JSONPath to extract values:

Template Variables in Queries

Assertions on Results

Redis

Configuration

Commands

Use the command array format:

GET and Extract

Complex Commands

Engine Shorthand

You can use flat shortcuts instead of the db: block:

What’s Next?