Database Operations
Thedb 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:Template Variables in Queries
Assertions on Results
Redis
Configuration
Commands
Use thecommand array format:
GET and Extract
Complex Commands
Engine Shorthand
You can use flat shortcuts instead of thedb: block:
What’s Next?
- Branch with control flow — if/then/else conditions
- Compose workflows with workflow chaining