helper context manager that will apply appropriate DDL events to a CREATE or DROP operation.
(self, target, **kw)
| 1270 | class InvokeCreateDDLBase(InvokeDDLBase): |
| 1271 | @contextlib.contextmanager |
| 1272 | def with_ddl_events(self, target, **kw): |
| 1273 | """helper context manager that will apply appropriate DDL events |
| 1274 | to a CREATE or DROP operation.""" |
| 1275 | |
| 1276 | target.dispatch.before_create( |
| 1277 | target, self.connection, _ddl_runner=self, **kw |
| 1278 | ) |
| 1279 | yield |
| 1280 | target.dispatch.after_create( |
| 1281 | target, self.connection, _ddl_runner=self, **kw |
| 1282 | ) |
| 1283 | |
| 1284 | |
| 1285 | class InvokeDropDDLBase(InvokeDDLBase): |
nothing calls this directly
no test coverage detected