MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / items

Method items

lib/sqlalchemy/sql/base.py:1911–1918  ·  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

1909 return [col for (_, col, _) in self._collection]
1910
1911 def items(self) -> List[Tuple[_COLKEY, _COL_co]]:
1912 """Return a sequence of (key, column) tuples for all columns in this
1913 collection each consisting of a string key name and a
1914 :class:`_sql.ColumnClause` or
1915 :class:`_schema.Column` object.
1916 """
1917
1918 return [(k, col) for (k, col, _) in self._collection]
1919
1920 def __bool__(self) -> bool:
1921 return bool(self._collection)

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected