MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / delete_extra_from_clause

Method delete_extra_from_clause

lib/sqlalchemy/sql/compiler.py:6713–6727  ·  view source on GitHub ↗

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
    )

Source from the content-addressed store, hash-verified

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(

Callers 1

visit_deleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected