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

Method as_readonly

lib/sqlalchemy/sql/base.py:1885–1889  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1883 return True
1884
1885 def as_readonly(self) -> ReadOnlyColumnCollection[_COLKEY, _COL_co]:
1886 """Return a "read only" form of this
1887 :class:`_sql.ColumnCollection`."""
1888
1889 return ReadOnlyColumnCollection(self)
1890
1891 def _init_proxy_index(self) -> None:
1892 """populate the "proxy index", if empty.

Callers 15

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

Calls 1

Tested by 15

test_dupes_addMethod · 0.76
test_dupes_constructMethod · 0.76
test_keysMethod · 0.36
test_valuesMethod · 0.36
test_itemsMethod · 0.36
test_replaceMethod · 0.36