(schemaName, tableName string)
| 264 | } |
| 265 | |
| 266 | func (e *BinlogDeleteEvent) AsSQLString(schemaName, tableName string) (string, error) { |
| 267 | if err := verifyValuesHasTheSameLengthAsColumns(e.table, e.oldValues); err != nil { |
| 268 | return "", err |
| 269 | } |
| 270 | |
| 271 | query := "DELETE FROM " + QuotedTableNameFromString(schemaName, tableName) + |
| 272 | " WHERE " + buildStringMapForWhere(e.table.Columns, e.oldValues) |
| 273 | |
| 274 | return query, nil |
| 275 | } |
| 276 | |
| 277 | func (e *BinlogDeleteEvent) PaginationKey() (string, error) { |
| 278 | return paginationKeyFromEventData(e.table, e.oldValues) |
nothing calls this directly
no test coverage detected