Args: Returns:
(schema, query)
| 646 | |
| 647 | |
| 648 | def get_sql(schema, query): |
| 649 | """ |
| 650 | Args: |
| 651 | |
| 652 | Returns: |
| 653 | """ |
| 654 | toks = tokenize(query) |
| 655 | tables_with_alias = get_tables_with_alias(schema.schema, toks) |
| 656 | _, sql = parse_sql(toks, 0, tables_with_alias, schema) |
| 657 | |
| 658 | return sql |
| 659 | |
| 660 | |
| 661 | def skip_semicolon(toks, start_idx): |
no test coverage detected