Returns the expected select-clause suggestions for a single-table select.
(table, schema=None, alias=None, is_function=False, parent=None, last_keyword=None)
| 19 | |
| 20 | |
| 21 | def 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 | |
| 34 | def test_select_suggests_cols_with_visible_table_scope(): |
no outgoing calls
no test coverage detected