Commit 8936d0e 1 parent 6b9bee6 commit 8936d0e Copy full SHA for 8936d0e
File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2051,7 +2051,10 @@ impl Parser {
2051
2051
default. push_node ( "next_keyword" , collate) ;
2052
2052
create. push_node ( "default_collate" , default) ;
2053
2053
}
2054
- // TODO with connection
2054
+ if self . get_token ( 1 ) ?. is ( "WITH" ) && self . get_token ( 2 ) ?. is ( "CONNECTION" ) {
2055
+ self . next_token ( ) ?; // -> WITH
2056
+ create. push_node ( "with_connection" , self . parse_with_connection_clause ( ) ?) ;
2057
+ }
2055
2058
if self . get_token ( 1 ) ?. is ( "OPTIONS" ) {
2056
2059
self . next_token ( ) ?; // OPTIONS
2057
2060
create. push_node ( "options" , self . parse_keyword_with_grouped_exprs ( false ) ?) ;
Original file line number Diff line number Diff line change 77
77
Box :: new( SuccessTestCase :: new(
78
78
"\
79
79
CREATE EXTERNAL SCHEMA dataset_name
80
+ WITH CONNECTION connection_name
80
81
" ,
81
82
"\
82
83
self: CREATE (CreateSchemaStatement)
@@ -86,6 +87,12 @@ ident:
86
87
self: dataset_name (Identifier)
87
88
what:
88
89
self: SCHEMA (Keyword)
90
+ with_connection:
91
+ self: WITH (KeywordSequence)
92
+ next_keyword:
93
+ self: CONNECTION (KeywordWithExpr)
94
+ expr:
95
+ self: connection_name (Identifier)
89
96
" ,
90
97
0 ,
91
98
) ) ,
Original file line number Diff line number Diff line change @@ -649,10 +649,12 @@ export type CreateRowAccessPolicyStatement = XXXStatement & {
649
649
export type CreateSchemaStatement = XXXStatement & {
650
650
node_type: "CreateSchemaStatement";
651
651
children: {
652
+ external?: NodeChild;
652
653
what: NodeChild;
653
654
if_not_exists?: NodeVecChild;
654
655
ident: NodeChild;
655
656
default_collate: NodeChild;
657
+ with_connection?: NodeChild;
656
658
options?: NodeChild;
657
659
};
658
660
};
You can’t perform that action at this time.
0 commit comments