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

Method has_key

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

Boolean expression. Test for presence of a key (equivalent of the ``?`` operator). Note that the key may be a SQLA expression.

(self, other: Any)

Source from the content-addressed store, hash-verified

330 type: JSONB[_CT_JSON]
331
332 def has_key(self, other: Any) -> ColumnElement[bool]:
333 """Boolean expression. Test for presence of a key (equivalent of
334 the ``?`` operator). Note that the key may be a SQLA expression.
335 """
336 return self.operate(HAS_KEY, other, result_type=sqltypes.Boolean)
337
338 def has_all(self, other: Any) -> ColumnElement[bool]:
339 """Boolean expression. Test for presence of all keys in jsonb

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected