MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __getitem__

Method __getitem__

lib/sqlalchemy/sql/operators.py:816–823  ·  view source on GitHub ↗

Implement the [] operator. This can be used by some database-specific types such as PostgreSQL ARRAY and HSTORE.

(self, index: Any)

Source from the content-addressed store, hash-verified

814 return self.operate(contains, other)
815
816 def __getitem__(self, index: Any) -> ColumnOperators:
817 """Implement the [] operator.
818
819 This can be used by some database-specific types
820 such as PostgreSQL ARRAY and HSTORE.
821
822 """
823 return self.operate(getitem, index)
824
825 def __lshift__(self, other: Any) -> ColumnOperators:
826 """Implement the ``<<`` operator.

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected