Provide a hook to override the generation of an DELETE..FROM clause. This can be used to implement DELETE..USING for example. MySQL and MSSQL override this.
(
self, delete_stmt, from_table, extra_froms, from_hints, **kw
)
| 6711 | return text # type: ignore[no-any-return] |
| 6712 | |
| 6713 | def delete_extra_from_clause( |
| 6714 | self, delete_stmt, from_table, extra_froms, from_hints, **kw |
| 6715 | ): |
| 6716 | """Provide a hook to override the generation of an |
| 6717 | DELETE..FROM clause. |
| 6718 | |
| 6719 | This can be used to implement DELETE..USING for example. |
| 6720 | |
| 6721 | MySQL and MSSQL override this. |
| 6722 | |
| 6723 | """ |
| 6724 | raise NotImplementedError( |
| 6725 | "This backend does not support multiple-table " |
| 6726 | "criteria within DELETE" |
| 6727 | ) |
| 6728 | |
| 6729 | def delete_table_clause(self, delete_stmt, from_table, extra_froms, **kw): |
| 6730 | return from_table._compiler_dispatch( |