Swift: Limit the rows an update or delete affects

Set the maximum number of rows that can be affected by the query.

Only available in PostgREST v13+ and only works with PATCH, DELETE methods and RPC calls.

Examples

With `update()`

try await supabase
  .from("users")
  .update(["status": "active"])
  .eq("id", value: 1)
  .maxAffected(1)
  .execute()

With `delete()`

try await supabase
  .from("users")
  .delete()
  .in("id", values: [1, 2, 3])
  .maxAffected(3)
  .execute()

With `rpc()`

try await supabase
  .rpc("delete_inactive_users")
  .maxAffected(10)
  .execute()