pub async fn delete_rows(
client: &Client,
schema: &str,
table: &str,
ctids: &[String],
) -> Result<UpdateOutcome, PgError>Expand description
Delete one or more rows identified by their ctids. Returns the number of rows actually deleted (callers compare against the requested count to surface “some rows were already gone” — the same optimistic-locking semantic as cell UPDATEs).
One round trip via DELETE … WHERE ctid = ANY($1). ctids are
passed as a text[] and cast to tid[] server-side, since
tokio_postgres doesn’t have a native tid[] ToSql impl.