Skip to content

refactor: update type definition #2403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion ast/postgresql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export type create_table_stmt_node = create_table_stmt_node_simple | create_tabl
type: 'create';
keyword: 'table';
temporary?: 'temporary';
unlogged?: 'unlogged';
if_not_exists?: 'if not exists';
table: table_ref_list;
}
Expand Down Expand Up @@ -349,6 +350,14 @@ export interface drop_index_stmt_node {
options?: 'cascade' | 'restrict';
}

export interface drop_index_stmt_node {
type: 'drop';
prefix?: string;
keyword: string;
name: column_ref_list;
options?: 'cascade' | 'restrict';
}

export interface drop_view_stmt_node {
type: 'drop';
prefix?: string;
Expand Down Expand Up @@ -956,7 +965,7 @@ export type table_ref = table_base | table_join;



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

type KW_TEMPORARY = never;

type KW_UNLOGGED = never;

type KW_TEMP = never;

type KW_DELETE = never;
Expand Down Expand Up @@ -1810,6 +1821,8 @@ type KW_COLUMN = never;

type KW_INDEX = never;

type KW_TYPE = never;

type KW_KEY = never;

type KW_FULLTEXT = never;
Expand Down