For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: Test a mutation without committing it

Executes the mutation but rolls back the transaction instead of committing it, so its changes in the transaction are not persisted.

Examples

With `update()`

try await supabase
  .from("todos")
  .update(["done": true])
  .eq("id", value: 1)
  .select()
  .dryRun()
  .execute()
// Row is not actually updated in the database.