MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / returning_clause

Method returning_clause

lib/sqlalchemy/sql/compiler.py:6938–6950  ·  view source on GitHub ↗
(
        self,
        stmt: UpdateBase,
        returning_cols: Sequence[_ColumnsClauseElement],
        *,
        populate_result_map: bool,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

6936 )
6937
6938 def returning_clause(
6939 self,
6940 stmt: UpdateBase,
6941 returning_cols: Sequence[_ColumnsClauseElement],
6942 *,
6943 populate_result_map: bool,
6944 **kw: Any,
6945 ) -> str:
6946 columns = [
6947 self._label_select_column(None, c, True, False, {})
6948 for c in base._select_iterables(returning_cols)
6949 ]
6950 return "RETURNING " + ", ".join(columns)
6951
6952 def update_from_clause(
6953 self, update_stmt, from_table, extra_froms, from_hints, **kw

Callers

nothing calls this directly

Calls 2

_label_select_columnMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected