MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / as_readonly

Method as_readonly

lib/sqlalchemy/sql/base.py:2180–2184  ·  view source on GitHub ↗

Return a "read only" form of this :class:`_sql.WriteableColumnCollection`.

(self)

Source from the content-addressed store, hash-verified

2178 return ReadOnlyColumnCollection(self)
2179
2180 def as_readonly(self) -> ReadOnlyColumnCollection[_COLKEY, _COL_co]:
2181 """Return a "read only" form of this
2182 :class:`_sql.WriteableColumnCollection`."""
2183
2184 return self._as_readonly()
2185
2186 def _init_proxy_index(self) -> None:
2187 """populate the "proxy index", if empty.

Callers 11

test_dupes_addMethod · 0.95
test_dupes_constructMethod · 0.95
columnsMethod · 0.45
cMethod · 0.45
cMethod · 0.45
selected_columnsMethod · 0.45
selected_columnsMethod · 0.45
exported_columnsMethod · 0.45
__getitem__Method · 0.45
cMethod · 0.45

Calls 1

_as_readonlyMethod · 0.95

Tested by 3

test_dupes_addMethod · 0.76
test_dupes_constructMethod · 0.76