MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / contains

Method contains

lib/sqlalchemy/dialects/postgresql/json.py:350–358  ·  view source on GitHub ↗

Boolean expression. Test if keys (or array) are a superset of/contained the keys of the argument jsonb expression (equivalent of the ``@>`` operator). kwargs may be ignored by this operator but are required for API conformance.

(self, other: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

348 return self.operate(HAS_ANY, other, result_type=sqltypes.Boolean)
349
350 def contains(self, other: Any, **kwargs: Any) -> ColumnElement[bool]:
351 """Boolean expression. Test if keys (or array) are a superset
352 of/contained the keys of the argument jsonb expression
353 (equivalent of the ``@>`` operator).
354
355 kwargs may be ignored by this operator but are required for API
356 conformance.
357 """
358 return self.operate(CONTAINS, other, result_type=sqltypes.Boolean)
359
360 def contained_by(self, other: Any) -> ColumnElement[bool]:
361 """Boolean expression. Test if keys are a proper subset of the

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected