All blocks

Operations

Workflow SDK World

The tables of the Workflow SDK World (@workflow/world-postgres 5.0.4) in the workflow schema, closed to the API roles; a trigger that copies each run into workflow_runs, and a pg_net dispatcher for the delivery queue on a pg_cron schedule.

DocsModes:managedcustom
terminal
npx better-supabase sql add workflow-sdk-world
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by workflow-sdk-world; sql add installs them too.
      "updated-at": {},
      tenant: {},
      jobs: {},
      access: {},
      workflows: {},
      // Modes: "managed", "custom". The default is "managed".
      "workflow-sdk-world": { mode: "managed" },
    },
  },
});