File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2554,6 +2554,8 @@ pub enum ShowKeysKind {
25542554 Imported,
25552555 /// `SHOW EXPORTED KEYS`
25562556 Exported,
2557+ /// `SHOW [TERSE] UNIQUE KEYS`
2558+ Unique,
25572559}
25582560
25592561impl fmt::Display for ShowKeysKind {
@@ -2562,6 +2564,7 @@ impl fmt::Display for ShowKeysKind {
25622564 ShowKeysKind::Primary => f.write_str("PRIMARY"),
25632565 ShowKeysKind::Imported => f.write_str("IMPORTED"),
25642566 ShowKeysKind::Exported => f.write_str("EXPORTED"),
2567+ ShowKeysKind::Unique => f.write_str("UNIQUE"),
25652568 }
25662569 }
25672570}
Original file line number Diff line number Diff line change @@ -665,6 +665,9 @@ impl Dialect for SnowflakeDialect {
665665 if parser. parse_keyword ( Keyword :: EXPORTED ) {
666666 return Some ( parse_show_keys ( ShowKeysKind :: Exported , terse, parser) ) ;
667667 }
668+ if parser. parse_keyword ( Keyword :: UNIQUE ) {
669+ return Some ( parse_show_keys ( ShowKeysKind :: Unique , terse, parser) ) ;
670+ }
668671 if parser. parse_keywords ( & [ Keyword :: ROW , Keyword :: ACCESS , Keyword :: POLICIES ] ) {
669672 return Some ( parse_show_row_access_policies ( parser) ) ;
670673 }
You can’t perform that action at this time.
0 commit comments