All blocks

Content

Imports

Import runs. Parsing, mapping and the dry run live in TypeScript. The job records import.completed or import.failed.

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

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