MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / identifies

Function identifies

mssqlcli/packages/sqlcompletion.py:528–532  ·  view source on GitHub ↗

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

(string_id, ref)

Source from the content-addressed store, hash-verified

526
527
528def identifies(string_id, ref):
529 """Returns true if string `string_id` matches TableReference `ref`"""
530
531 return string_id == ref.alias or string_id == ref.name or (
532 ref.schema and (string_id == ref.schema + '.' + ref.name))
533
534
535def _allow_join_condition(statement):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected