Skip to content

Commit

Permalink
Merge pull request #1750 from taozhi8833998/feat-noql-dialect
Browse files Browse the repository at this point in the history
feat: add noql dialect
  • Loading branch information
taozhi8833998 authored Jan 8, 2024
2 parents 08460a0 + 36b507c commit 8ad2236
Show file tree
Hide file tree
Showing 8 changed files with 5,363 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ Import the JS file in your page:
- TransactSQL
- [FlinkSQL](https://ci.apache.org/projects/flink/flink-docs-stable/dev/table/sql/)
- Snowflake(alpha)
- [Noql](https://noql.synatic.dev/)
- New issue could be made for other new database.

### Create AST for SQL statement
Expand Down
8 changes: 6 additions & 2 deletions ast/postgresql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type crud_stmt = union_stmt | update_stmt | replace_insert_stmt | insert_

export type multiple_stmt = AstStatement<curd_stmt | crud_stmt[]>;

export type set_op = 'union' | 'union all' | 'union distinct';
export type set_op = 'union' | 'union all' | 'union distinct' | 'intersect | 'except';

export interface union_stmt_node extends select_stmt_node {
_next: union_stmt_node;
Expand Down Expand Up @@ -774,7 +774,7 @@ export type value_alias_clause = alias_ident;



export type alias_clause = alias_ident | ident;
export type alias_clause = alias_ident;

export type into_clause = { keyword: 'var'; type: 'into'; expr: var_decl_list; } | { keyword: 'var'; type: 'into'; expr: literal_string | ident; };

Expand Down Expand Up @@ -1368,6 +1368,10 @@ type KW_OUTER = never;

type KW_UNION = never;

type KW_INTERSECT = never;

type KW_EXCEPT = never;

type KW_VALUES = never;

type KW_USING = never;
Expand Down
Loading

0 comments on commit 8ad2236

Please sign in to comment.