MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / exported_columns

Method exported_columns

lib/sqlalchemy/sql/dml.py:847–860  ·  view source on GitHub ↗

Return the RETURNING columns as a column collection for this statement. .. versionadded:: 1.4

(
        self,
    )

Source from the content-addressed store, hash-verified

845
846 @util.ro_memoized_property
847 def exported_columns(
848 self,
849 ) -> ReadOnlyColumnCollection[Optional[str], ColumnElement[Any]]:
850 """Return the RETURNING columns as a column collection for this
851 statement.
852
853 .. versionadded:: 1.4
854
855 """
856 return ColumnCollection(
857 (c.key, c)
858 for c in self._all_selected_columns
859 if is_column_element(c)
860 ).as_readonly()
861
862 @_generative
863 def with_hint(

Callers

nothing calls this directly

Calls 3

ColumnCollectionClass · 0.85
is_column_elementFunction · 0.85
as_readonlyMethod · 0.45

Tested by

no test coverage detected