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

Function cols_etc

tests/test_sqlcompletion.py:21–31  ·  view source on GitHub ↗

Returns the expected select-clause suggestions for a single-table select.

(table, schema=None, alias=None, is_function=False, parent=None, last_keyword=None)

Source from the content-addressed store, hash-verified

19
20
21def cols_etc(table, schema=None, alias=None, is_function=False, parent=None, last_keyword=None):
22 """Returns the expected select-clause suggestions for a single-table
23 select."""
24 return {
25 Column(
26 table_refs=(TableReference(schema, table, alias, is_function),),
27 qualifiable=True,
28 ),
29 Function(schema=parent),
30 Keyword(last_keyword),
31 }
32
33
34def test_select_suggests_cols_with_visible_table_scope():

Calls

no outgoing calls

Tested by

no test coverage detected