Skip to content

Commit 3dcbe56

Browse files
committed
refactor: update type definition
1 parent 7241d9e commit 3dcbe56

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

ast/postgresql.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export type create_table_stmt_node = create_table_stmt_node_simple | create_tabl
154154
type: 'create';
155155
keyword: 'table';
156156
temporary?: 'temporary';
157+
unlogged?: 'unlogged';
157158
if_not_exists?: 'if not exists';
158159
table: table_ref_list;
159160
}
@@ -349,6 +350,14 @@ export interface drop_index_stmt_node {
349350
options?: 'cascade' | 'restrict';
350351
}
351352

353+
export interface drop_index_stmt_node {
354+
type: 'drop';
355+
prefix?: string;
356+
keyword: string;
357+
name: column_ref_list;
358+
options?: 'cascade' | 'restrict';
359+
}
360+
352361
export interface drop_view_stmt_node {
353362
type: 'drop';
354363
prefix?: string;
@@ -956,7 +965,7 @@ export type table_ref = table_base | table_join;
956965

957966

958967

959-
export type table_join = table_base & {join: join_op; using: ident_name[]; } | table_base & {join: join_op; on?: on_clause; } | {
968+
export type table_join = table_base & {join: join_op; using: ident_without_kw_type[]; } | table_base & {join: join_op; on?: on_clause; } | {
960969
expr: (union_stmt | table_ref_list) & { parentheses: true; };
961970
as?: alias_clause;
962971
join: join_op | set_op;
@@ -1494,6 +1503,8 @@ type KW_CREATE = never;
14941503

14951504
type KW_TEMPORARY = never;
14961505

1506+
type KW_UNLOGGED = never;
1507+
14971508
type KW_TEMP = never;
14981509

14991510
type KW_DELETE = never;
@@ -1810,6 +1821,8 @@ type KW_COLUMN = never;
18101821

18111822
type KW_INDEX = never;
18121823

1824+
type KW_TYPE = never;
1825+
18131826
type KW_KEY = never;
18141827

18151828
type KW_FULLTEXT = never;

0 commit comments

Comments
 (0)