Skip to main content

Overview

The Database step lets you read, write, and query your automation databases. Choose from structured operations (Read, Insert, Update, Upsert, Delete) with a visual builder, or write raw SQL with the Query operation.

Configuration

FieldDescription
DatabaseSelect a connected automation database
OperationRead, Insert, Update, Upsert, Delete, or Query
TableTarget table (for structured operations)

Operations

OperationDescriptionFields
ReadFetch rows from a tableColumn toggles to select which columns to return
InsertAdd a new rowSet field values for the new row
UpdateModify existing rowsSet field values + where clauses to match rows
UpsertInsert or updateSet field values (inserts if not found, updates if exists)
DeleteRemove rowsWhere clauses to match rows to delete
QueryRun raw SQLSQL editor with template variable support and AI generation

Where Clauses

For Update, Delete, and Read operations, use where clauses to filter rows. Each clause specifies a column, operator, and value. Available operators:
OperatorDescription
=Equals
!=Not equals
>Greater than
<Less than
>=Greater than or equal
<=Less than or equal
LIKEPattern match (case-sensitive)
ILIKEPattern match (case-insensitive)
INMatches any value in a list
NOT INDoes not match any value in a list
BETWEENWithin a range
IS NULLValue is null
IS NOT NULLValue is not null

Output

FieldTypeDescription
rowsarrayResult rows
countnumberNumber of affected/returned rows
errorbooleanWhether an error occurred
error_messagestringError description if failed