MCPcopy Index your code
hub / github.com/dbcli/mycli / _matches_parent

Method _matches_parent

mycli/sqlcompleter.py:1836–1843  ·  view source on GitHub ↗
(parent: str, schema: str | None, relname: str, alias: str | None)

Source from the content-addressed store, hash-verified

1834
1835 @staticmethod
1836 def _matches_parent(parent: str, schema: str | None, relname: str, alias: str | None) -> bool:
1837 if alias and parent == alias:
1838 return True
1839 if parent == relname:
1840 return True
1841 if schema and parent == f"{schema}.{relname}":
1842 return True
1843 return False
1844
1845 @staticmethod
1846 def _quote_sql_string(value: str) -> str:

Callers 2

populate_enum_valuesMethod · 0.95
test_matches_parentFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_matches_parentFunction · 0.64