routier-collection / plugins/mysql/src / MysqlUpdatesOperation
Type Alias: MysqlUpdatesOperation
MysqlUpdatesOperation =
SqlOperation&object
Defined in: plugins/mysql/src/types.ts:26
MySQL has no RETURNING, so the updated rows are selected back afterwards. keyTuples carries each row's FULL identity — selecting back on one component of a composite key echoes the wrong rows.
Type Declaration
ids
ids:
unknown[]
keyTuples
keyTuples:
Record<string,unknown>[]
conflictCheck?
optionalconflictCheck:object
Present on a token-checked UPDATE. MySQL has no RETURNING, so a conflict shows up as affectedRows === 0 rather than an empty result set — the statement is valid and succeeds, it simply matches no row because the token moved.
conflictCheck.id
id:
unknown