MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / identifies

Function identifies

web/pgadmin/utils/sqlautocomplete/sqlcompletion.py:500–506  ·  view source on GitHub ↗

Returns true if string `id` matches TableReference `ref`

(id, ref)

Source from the content-addressed store, hash-verified

498
499
500def identifies(id, ref):
501 """Returns true if string `id` matches TableReference `ref`"""
502
503 return (
504 id == ref.alias or id == ref.name or
505 (ref.schema and (id == ref.schema + "." + ref.name))
506 )
507
508
509def _allow_join_condition(statement):

Callers 2

_suggest_expressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected