MCPcopy
hub / github.com/dbcli/pgcli / identifies

Function identifies

pgcli/packages/sqlcompletion.py:546–549  ·  view source on GitHub ↗

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

(table_id, ref)

Source from the content-addressed store, hash-verified

544
545
546def identifies(table_id, ref):
547 """Returns true if string `id` matches TableReference `ref`"""
548
549 return table_id == ref.alias or table_id == ref.name or (ref.schema and (table_id == ref.schema + "." + ref.name))
550
551
552def _allow_join_condition(statement):

Callers 2

_suggest_expressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected