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

Method items

lib/sqlalchemy/sql/base.py:1668–1675  ·  view source on GitHub ↗

Return a sequence of (key, column) tuples for all columns in this collection each consisting of a string key name and a :class:`_sql.ColumnClause` or :class:`_schema.Column` object.

(self)

Source from the content-addressed store, hash-verified

1666 return [col for (_, col, _) in self._collection]
1667
1668 def items(self) -> List[Tuple[_COLKEY, _COL_co]]:
1669 """Return a sequence of (key, column) tuples for all columns in this
1670 collection each consisting of a string key name and a
1671 :class:`_sql.ColumnClause` or
1672 :class:`_schema.Column` object.
1673 """
1674
1675 return [(k, col) for (k, col, _) in self._collection]
1676
1677 def __bool__(self) -> bool:
1678 return bool(self._collection)

Callers 15

_copyMethod · 0.45
_copyMethod · 0.45
_cloneMethod · 0.45
filter_byMethod · 0.45
_cloneMethod · 0.45
bindparamsMethod · 0.45
columnsMethod · 0.45
valuesMethod · 0.45
filter_byMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected