Skip to content

Commit

Permalink
bin/fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Feb 4, 2025
1 parent 6890c65 commit 741e4d2
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/sql-parser/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2321,16 +2321,9 @@ impl<'a> Parser<'a> {
TO => true,
_ => unreachable!(),
};
let connection_type = match self.expect_one_of_keywords(&[
AWS,
KAFKA,
CONFLUENT,
POSTGRES,
SSH,
SQL,
MYSQL,
YUGABYTE,
])? {
let connection_type = match self
.expect_one_of_keywords(&[AWS, KAFKA, CONFLUENT, POSTGRES, SSH, SQL, MYSQL, YUGABYTE])?
{
AWS => {
if self.parse_keyword(PRIVATELINK) {
CreateConnectionType::AwsPrivatelink
Expand All @@ -2351,7 +2344,7 @@ impl<'a> Parser<'a> {
SQL => {
self.expect_keyword(SERVER)?;
CreateConnectionType::SqlServer
},
}
MYSQL => CreateConnectionType::MySql,
YUGABYTE => CreateConnectionType::Yugabyte,
_ => unreachable!(),
Expand Down

0 comments on commit 741e4d2

Please sign in to comment.