Skip to main content

Relational Database Activities

Use the RDB group to run SQL against a relational database from a workflow. The activities share a Connection resource and cover reading, writing, and removing rows.

Available activities

ActivityPurpose
ConnectionStores the host, port, database, credentials, and database type
QueryRuns a SQL query and returns the resulting rows
UpsertInserts or updates rows
DeleteRemoves rows

Configure a database operation

  1. Add a Connection resource and select the database type.
  2. Enter the host, port, database name, and credentials.
  3. Add Query, Upsert, or Delete to the workflow and select the connection.
  4. Choose the schema and table, then write the SQL statement.
  5. Map the statement's inputs and the returned rows.
  • Parameterise statements through the Input mapping rather than concatenating values into SQL.
  • Store credentials in the Connection resource; do not place them in workflow mappings.
  • Set a batch size on Query and Upsert when working with large result sets.
  • Test against a non-production database before promoting the workflow.