Skip to content

Commit

Permalink
mysql (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex authored Apr 24, 2024
1 parent e00fe11 commit 1b4e3ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2374,6 +2374,7 @@ pub enum PeerType {
Postgres,
S3,
SQLServer,
MySql,
Kafka,
Eventhubs,
PubSub,
Expand All @@ -2389,6 +2390,7 @@ impl fmt::Display for PeerType {
PeerType::Postgres => write!(f, "POSTGRES"),
PeerType::S3 => write!(f, "S3"),
PeerType::SQLServer => write!(f, "SQLSERVER"),
PeerType::MySql => write!(f, "MYSQL"),
PeerType::Kafka => write!(f, "KAFKA"),
PeerType::Eventhubs => write!(f, "EVENTHUBS"),
PeerType::PubSub => write!(f, "PUBSUB"),
Expand Down
1 change: 1 addition & 0 deletions src/keywords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ define_keywords!(
MSCK,
MULTISET,
MUTATION,
MYSQL,
NAME,
NANOSECOND,
NANOSECONDS,
Expand Down
3 changes: 3 additions & 0 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8396,6 +8396,7 @@ impl<'a> Parser<'a> {
Keyword::KAFKA,
Keyword::S3,
Keyword::SQLSERVER,
Keyword::MYSQL,
Keyword::EVENTHUBS,
Keyword::PUBSUB,
Keyword::ELASTICSEARCH,
Expand All @@ -8407,6 +8408,7 @@ impl<'a> Parser<'a> {
Some(Keyword::KAFKA) => Ok(PeerType::Kafka),
Some(Keyword::S3) => Ok(PeerType::S3),
Some(Keyword::SQLSERVER) => Ok(PeerType::SQLServer),
Some(Keyword::MYSQL) => Ok(PeerType::MySql),
Some(Keyword::EVENTHUBS) => Ok(PeerType::Eventhubs),
Some(Keyword::PUBSUB) => Ok(PeerType::PubSub),
Some(Keyword::ELASTICSEARCH) => Ok(PeerType::Elasticsearch),
Expand All @@ -8419,6 +8421,7 @@ impl<'a> Parser<'a> {
"KAFKA",
"S3",
"SQLSERVER",
"MYSQL",
"EVENTHUBS",
"PUBSUB",
"ELASTICSEARCH",
Expand Down

0 comments on commit 1b4e3ce

Please sign in to comment.