You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New sync() Express middleware atomically synchronises a table with the full provided row list inside a single PostgreSQL transaction (BEGIN / COMMIT / ROLLBACK on failure)
Incoming rows without an ID (or with an unknown ID) are inserted; rows with a known ID are updated; existing rows absent from the list are deleted
Accepts optional idField in request body (defaults to 'id') to specify the identity column
Accepts optional filters in request body to scope the managed set — rows outside the filter are never touched
Returns synced rows with generated IDs in res.locals.rows
Returns operation summary { inserted, updated, deleted } in res.locals.sync
Supports consumerId / consumerName forwarding for history tracking on inserts and updates