database::row-changed
Fires after this worker commits a row change, filtered by `db`, optional `table`, and optional `ops`. Reports only mutations made THROUGH this worker — not change data capture.
- dbstringrequired
Database handle, as named in the worker's config. Required — a binding that watched every database would fire for traffic its owner never asked about.
- opsone of[]
Operation filter. Omit to hear every operation.
one of (2)Variant 1valuestringenum insert, update, deleteVariant 2valuestringenum other - tablestring
Table filter. Matched case-insensitively and ignoring a schema qualifier. Omit to hear every table in the database.
- affected_rowsinteger· uint64requiredmin 0
- atinteger· int64required
Epoch millis at emit time.
- dbstringrequired
- opone ofrequired
The kind of row change a statement makes.
one of (2)Variant 1valuestringenum insert, update, deleteVariant 2valuestringenum other - returningobject[]
The `RETURNING` rows, when the caller asked for them. Absent otherwise — this trigger reports that a change happened, not the new row.
Empty object - tablestring
`null` when the statement was recognisably a write but its table could not be read out of the SQL (a CTE-wrapped write, for example).