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

Method path_exists

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

Boolean expression. Test for presence of item given by the argument JSONPath expression (equivalent of the ``@?`` operator). .. versionadded:: 2.0

(self, other: Any)

Source from the content-addressed store, hash-verified

383 return self.operate(DELETE_PATH, right_side, result_type=JSONB)
384
385 def path_exists(self, other: Any) -> ColumnElement[bool]:
386 """Boolean expression. Test for presence of item given by the
387 argument JSONPath expression (equivalent of the ``@?`` operator).
388
389 .. versionadded:: 2.0
390 """
391 return self.operate(
392 PATH_EXISTS, other, result_type=sqltypes.Boolean
393 )
394
395 def path_match(self, other: Any) -> ColumnElement[bool]:
396 """Boolean expression. Test if JSONPath predicate given by the

Callers

nothing calls this directly

Calls 1

operateMethod · 0.95

Tested by

no test coverage detected