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

Method exported_columns

lib/sqlalchemy/sql/selectable.py:3619–3643  ·  view source on GitHub ↗

A :class:`_expression.ColumnCollection` that represents the "exported" columns of this :class:`_expression.Selectable`, not including :class:`_sql.TextClause` constructs. The "exported" columns for a :class:`_expression.SelectBase` object are synonymous

(
        self,
    )

Source from the content-addressed store, hash-verified

3617
3618 @property
3619 def exported_columns(
3620 self,
3621 ) -> ReadOnlyColumnCollection[str, ColumnElement[Any]]:
3622 """A :class:`_expression.ColumnCollection`
3623 that represents the "exported"
3624 columns of this :class:`_expression.Selectable`, not including
3625 :class:`_sql.TextClause` constructs.
3626
3627 The "exported" columns for a :class:`_expression.SelectBase`
3628 object are synonymous
3629 with the :attr:`_expression.SelectBase.selected_columns` collection.
3630
3631 .. versionadded:: 1.4
3632
3633 .. seealso::
3634
3635 :attr:`_expression.Select.exported_columns`
3636
3637 :attr:`_expression.Selectable.exported_columns`
3638
3639 :attr:`_expression.FromClause.exported_columns`
3640
3641
3642 """
3643 return self.selected_columns.as_readonly()
3644
3645 @property
3646 @util.deprecated(

Callers

nothing calls this directly

Calls 1

as_readonlyMethod · 0.45

Tested by

no test coverage detected