MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _execute_on_connection

Method _execute_on_connection

lib/sqlalchemy/sql/elements.py:524–537  ·  view source on GitHub ↗
(
        self,
        connection: Connection,
        distilled_params: _CoreMultiExecuteParams,
        execution_options: CoreExecuteOptionsParameter,
    )

Source from the content-addressed store, hash-verified

522 return d
523
524 def _execute_on_connection(
525 self,
526 connection: Connection,
527 distilled_params: _CoreMultiExecuteParams,
528 execution_options: CoreExecuteOptionsParameter,
529 ) -> Result[Unpack[TupleAny]]:
530 if self.supports_execution:
531 if TYPE_CHECKING:
532 assert isinstance(self, Executable)
533 return connection._execute_clauseelement(
534 self, distilled_params, execution_options
535 )
536 else:
537 raise exc.ObjectNotExecutableError(self)
538
539 def _execute_on_scalar(
540 self,

Callers 1

_execute_on_scalarMethod · 0.95

Calls 1

Tested by

no test coverage detected