pub async fn upsert_tx(
tx: &mut Transaction<'_, Postgres>,
def: &ViewDefinition,
definition_sql: &str,
updated_by: &str,
) -> Result<(), Error>Expand description
Inserts a new row, or – on a name collision – updates every column including updated_at/
updated_by explicitly: the column defaults only fire on INSERT, and reload()’s digest is
over (view_set_name, updated_at), so a REPLACE that left it unset would go live only on the
replacing node while every other replica kept serving/materializing the old definition.