(schemaName, tableName string)
| 222 | } |
| 223 | |
| 224 | func (e *BinlogUpdateEvent) AsSQLString(schemaName, tableName string) (string, error) { |
| 225 | if err := verifyValuesHasTheSameLengthAsColumns(e.table, e.oldValues, e.newValues); err != nil { |
| 226 | return "", err |
| 227 | } |
| 228 | |
| 229 | query := "UPDATE " + QuotedTableNameFromString(schemaName, tableName) + |
| 230 | " SET " + buildStringMapForSet(e.table.Columns, e.newValues) + |
| 231 | " WHERE " + buildStringMapForWhere(e.table.Columns, e.oldValues) |
| 232 | |
| 233 | return query, nil |
| 234 | } |
| 235 | |
| 236 | func (e *BinlogUpdateEvent) PaginationKey() (string, error) { |
| 237 | return paginationKeyFromEventData(e.table, e.newValues) |
nothing calls this directly
no test coverage detected