-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename some folders, move some files around (#100)
* refactor: move and rename some files around * refactor: move parsers/{dialect}/jison to parsers/{dialect}/grammar * refactor: remove unused SqlSyntax grouping * refactor: rename src/parsing to src/autocomplete * refactor: add linter fix
- Loading branch information
1 parent
4b99563
commit c7c68e2
Showing
146 changed files
with
1,023 additions
and
984 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
558 changes: 279 additions & 279 deletions
558
...lickhouse/clickhouseAutocompleteParser.js → ...lickhouse/clickhouseAutocompleteParser.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
62 changes: 62 additions & 0 deletions
62
src/autocomplete/parsers/clickhouse/grammar/structure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"lexer": "sql.jisonlex", | ||
"autocomplete": [ | ||
"../../generic/grammar/common/header_and_footer/header.jison", | ||
"../../generic/grammar/alter/alter_common.jison", | ||
"../../generic/grammar/alter/alter_table.jison", | ||
"../../generic/grammar/alter/alter_view.jison", | ||
"../../generic/grammar/create/create_common.jison", | ||
"../../generic/grammar/create/create_database_or_schema.jison", | ||
"../../generic/grammar/create/create_role.jison", | ||
"create/create_table.jison", | ||
"../../generic/grammar/create/create_view.jison", | ||
"../../generic/grammar/delete/delete.jison", | ||
"../../generic/grammar/drop/drop_common.jison", | ||
"../../generic/grammar/drop/drop_database.jison", | ||
"../../generic/grammar/drop/drop_role.jison", | ||
"../../generic/grammar/drop/drop_table.jison", | ||
"../../generic/grammar/drop/drop_view.jison", | ||
"explain/explain.jison", | ||
"../../generic/grammar/insert/insert.jison", | ||
"../../generic/grammar/select/cte_select_statement.jison", | ||
"../../generic/grammar/select/from_clause.jison", | ||
"../../generic/grammar/select/group_by_clause.jison", | ||
"../../generic/grammar/select/having_clause.jison", | ||
"../../generic/grammar/select/joins.jison", | ||
"../../generic/grammar/select/limit_clause.jison", | ||
"../../generic/grammar/select/order_by_clause.jison", | ||
"select/select.jison", | ||
"../../generic/grammar/select/select_conditions.jison", | ||
"../../generic/grammar/select/union_clause.jison", | ||
"../../generic/grammar/common/where/where_clause.jison", | ||
"../../generic/grammar/set/set_common.jison", | ||
"../../generic/grammar/set/set_all.jison", | ||
"../../generic/grammar/set/set_option.jison", | ||
"../../generic/grammar/truncate/truncate_table.jison", | ||
"../../generic/grammar/udf/aggregate/aggregate_common.jison", | ||
"../../generic/grammar/udf/aggregate/avg.jison", | ||
"../../generic/grammar/udf/aggregate/count.jison", | ||
"../../generic/grammar/udf/aggregate/max.jison", | ||
"../../generic/grammar/udf/aggregate/min.jison", | ||
"../../generic/grammar/udf/aggregate/stddev_pop.jison", | ||
"../../generic/grammar/udf/aggregate/stddev_samp.jison", | ||
"../../generic/grammar/udf/aggregate/sum.jison", | ||
"../../generic/grammar/udf/aggregate/var_pop.jison", | ||
"../../generic/grammar/udf/aggregate/var_samp.jison", | ||
"../../generic/grammar/udf/aggregate/variance.jison", | ||
"../../generic/grammar/udf/analytic/analytic.jison", | ||
"../../generic/grammar/udf/function/array.jison", | ||
"../../generic/grammar/udf/function/cast.jison", | ||
"../../generic/grammar/udf/function/if.jison", | ||
"../../generic/grammar/udf/function/map.jison", | ||
"../../generic/grammar/udf/function/truncate.jison", | ||
"../../generic/grammar/udf/udf_common.jison", | ||
"../../generic/grammar/update/update_table.jison", | ||
"../../generic/grammar/use/use.jison", | ||
"../../generic/grammar/common/error/error.jison", | ||
"main.jison", | ||
"../../generic/grammar/common/table/table.jison", | ||
"../../generic/grammar/common/value_expression/value_expression.jison", | ||
"../../generic/grammar/common/header_and_footer/footer.jison" | ||
] | ||
} |
File renamed without changes.
524 changes: 262 additions & 262 deletions
524
...sers/generic/genericAutocompleteParser.js → ...sers/generic/genericAutocompleteParser.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
63 changes: 63 additions & 0 deletions
63
src/autocomplete/parsers/postgresql/grammar/structure.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"lexer": "sql.jisonlex", | ||
"autocomplete": [ | ||
"../../generic/grammar/common/header_and_footer/header.jison", | ||
"../../generic/grammar/alter/alter_common.jison", | ||
"../../generic/grammar/alter/alter_table.jison", | ||
"../../generic/grammar/alter/alter_view.jison", | ||
"../../generic/grammar/create/create_common.jison", | ||
"../../generic/grammar/create/create_database_or_schema.jison", | ||
"../../generic/grammar/create/create_role.jison", | ||
"../../generic/grammar/create/create_table.jison", | ||
"../../generic/grammar/create/create_view.jison", | ||
"../../generic/grammar/delete/delete.jison", | ||
"../../generic/grammar/drop/drop_common.jison", | ||
"../../generic/grammar/drop/drop_database.jison", | ||
"../../generic/grammar/drop/drop_role.jison", | ||
"../../generic/grammar/drop/drop_table.jison", | ||
"../../generic/grammar/drop/drop_view.jison", | ||
"../../generic/grammar/explain/explain.jison", | ||
"../../generic/grammar/insert/insert.jison", | ||
"../../generic/grammar/select/cte_select_statement.jison", | ||
"../../generic/grammar/select/from_clause.jison", | ||
"../../generic/grammar/select/group_by_clause.jison", | ||
"../../generic/grammar/select/having_clause.jison", | ||
"../../generic/grammar/select/joins.jison", | ||
"select/limit_clause.jison", | ||
"select/offset_clause.jison", | ||
"select/order_by_clause.jison", | ||
"select/select.jison", | ||
"select/select_conditions.jison", | ||
"../../generic/grammar/select/union_clause.jison", | ||
"../../generic/grammar/common/where/where_clause.jison", | ||
"../../generic/grammar/set/set_common.jison", | ||
"../../generic/grammar/set/set_all.jison", | ||
"../../generic/grammar/set/set_option.jison", | ||
"../../generic/grammar/truncate/truncate_table.jison", | ||
"../../generic/grammar/udf/aggregate/aggregate_common.jison", | ||
"../../generic/grammar/udf/aggregate/avg.jison", | ||
"../../generic/grammar/udf/aggregate/count.jison", | ||
"../../generic/grammar/udf/aggregate/max.jison", | ||
"../../generic/grammar/udf/aggregate/min.jison", | ||
"../../generic/grammar/udf/aggregate/stddev_pop.jison", | ||
"../../generic/grammar/udf/aggregate/stddev_samp.jison", | ||
"../../generic/grammar/udf/aggregate/sum.jison", | ||
"../../generic/grammar/udf/aggregate/var_pop.jison", | ||
"../../generic/grammar/udf/aggregate/var_samp.jison", | ||
"../../generic/grammar/udf/aggregate/variance.jison", | ||
"../../generic/grammar/udf/analytic/analytic.jison", | ||
"../../generic/grammar/udf/function/array.jison", | ||
"../../generic/grammar/udf/function/cast.jison", | ||
"../../generic/grammar/udf/function/if.jison", | ||
"../../generic/grammar/udf/function/map.jison", | ||
"../../generic/grammar/udf/function/truncate.jison", | ||
"../../generic/grammar/udf/udf_common.jison", | ||
"../../generic/grammar/update/update_table.jison", | ||
"../../generic/grammar/use/use.jison", | ||
"../../generic/grammar/common/error/error.jison", | ||
"../../generic/grammar/main.jison", | ||
"../../generic/grammar/common/table/table.jison", | ||
"../../generic/grammar/common/value_expression/value_expression.jison", | ||
"../../generic/grammar/common/header_and_footer/footer.jison" | ||
] | ||
} |
File renamed without changes.
526 changes: 263 additions & 263 deletions
526
...ostgresql/postgresqlAutocompleteParser.js → ...ostgresql/postgresqlAutocompleteParser.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.