Skip to main content
Every table automatically has id (uuid), created_at, and updated_at - never add those columns yourself.

CRUD

Filters and modifiers

  • Filters chain: .eq() .neq() .gt() .gte() .lt() .lte() .like() .ilike() .in() .is()
  • Modifiers: .order() .limit() .range() .single() .maybeSingle()
  • Postgres functions: backend.database.rpc("fn_name", { arg: 1 })

Row-level security

Tables created with RLS on (the default) and a user_id uuid column scope rows to the signed-in user automatically - no policy code needed. After sign-in, queries just return the right rows.

Changing schema

Tables and migrations are CLI operations, not SDK calls:
See CLI reference.