MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _run_ddl_visitor

Method _run_ddl_visitor

lib/sqlalchemy/engine/base.py:2422–2436  ·  view source on GitHub ↗

run a DDL visitor. This method is only here so that the MockConnection can change the options given to the visitor so that "checkfirst" is skipped.

(
        self,
        visitorcallable: Type[InvokeDDLBase],
        element: SchemaVisitable,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

2420 raise exc_info[1].with_traceback(exc_info[2])
2421
2422 def _run_ddl_visitor(
2423 self,
2424 visitorcallable: Type[InvokeDDLBase],
2425 element: SchemaVisitable,
2426 **kwargs: Any,
2427 ) -> None:
2428 """run a DDL visitor.
2429
2430 This method is only here so that the MockConnection can change the
2431 options given to the visitor so that "checkfirst" is skipped.
2432
2433 """
2434 visitorcallable(
2435 dialect=self.dialect, connection=self, **kwargs
2436 ).traverse_single(element)
2437
2438
2439class ExceptionContextImpl(ExceptionContext):

Callers

nothing calls this directly

Calls 1

traverse_singleMethod · 0.80

Tested by

no test coverage detected