MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / contained_by

Method contained_by

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

Boolean expression. Test if keys are a proper subset of the keys of the argument jsonb expression (equivalent of the ``<@`` operator).

(self, other: Any)

Source from the content-addressed store, hash-verified

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
362 keys of the argument jsonb expression
363 (equivalent of the ``<@`` operator).
364 """
365 return self.operate(
366 CONTAINED_BY, other, result_type=sqltypes.Boolean
367 )
368
369 def delete_path(
370 self, array: Union[List[str], _pg_array[str]]

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected