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

Method __getitem__

lib/sqlalchemy/sql/operators.py:652–659  ·  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

650 return self.operate(contains, other)
651
652 def __getitem__(self, index: Any) -> ColumnOperators:
653 """Implement the [] operator.
654
655 This can be used by some database-specific types
656 such as PostgreSQL ARRAY and HSTORE.
657
658 """
659 return self.operate(getitem, index)
660
661 def __lshift__(self, other: Any) -> ColumnOperators:
662 """implement the << operator.

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected