All blocks

Work

Bulk actions

One action over many rows: up to a limit in one call with a result per row, and larger sets as a background run on the jobs queue that runs as the user who started it.

DocsModes:managedadoptcustom
terminal
npx better-supabase sql add bulk
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

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