helper context manager that will apply appropriate DDL events to a CREATE or DROP operation.
(self, target, **kw)
| 898 | class InvokeDropDDLBase(InvokeDDLBase): |
| 899 | @contextlib.contextmanager |
| 900 | def with_ddl_events(self, target, **kw): |
| 901 | """helper context manager that will apply appropriate DDL events |
| 902 | to a CREATE or DROP operation.""" |
| 903 | |
| 904 | target.dispatch.before_drop( |
| 905 | target, self.connection, _ddl_runner=self, **kw |
| 906 | ) |
| 907 | yield |
| 908 | target.dispatch.after_drop( |
| 909 | target, self.connection, _ddl_runner=self, **kw |
| 910 | ) |
| 911 | |
| 912 | |
| 913 | class SchemaGenerator(InvokeCreateDDLBase): |
nothing calls this directly
no test coverage detected