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

Function _emit_relation_name

mycli/packages/completion_engine.py:299–305  ·  view source on GitHub ↗
(ctx: SuggestContext)

Source from the content-addressed store, hash-verified

297
298
299def _emit_relation_name(ctx: SuggestContext) -> list[Suggestion]:
300 rel_type = ctx.token_value
301 assert rel_type is not None
302 schema = _parent_name(ctx)
303 if schema:
304 return [{'type': rel_type, 'schema': schema}]
305 return [{'type': 'schema'}, {'type': rel_type, 'schema': []}]
306
307
308def _emit_on(ctx: SuggestContext) -> list[Suggestion]:

Calls 1

_parent_nameFunction · 0.85