-
Notifications
You must be signed in to change notification settings - Fork 752
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
chore(mysqldump): support mysqldump dump schema #4972
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Thanks for the contribution! Please review the labels and make any necessary changes. |
…gtid-purged=OFF --no-tablespaces --no-data --triggers=0 --column-statistics=0 -uroot -h127.0.0.1 -P3307 dd1
LGTM |
@@ -346,6 +346,8 @@ impl<'a> DfParser<'a> { | |||
Ok(DfStatement::ShowSettings(DfShowSettings)) | |||
} else if self.consume_token("CREATE") { | |||
self.parse_show_create() | |||
} else if self.consume_token("FIELDS") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} else if self.consume_token("FIELDS") {
} else if self.consume_token("FIELDS") || self.consume_token("COLUMNS") {
maybe we can also support columns
?
SHOW [EXTENDED] [FULL] {COLUMNS | FIELDS}
{FROM | IN} tbl_name
[{FROM | IN} db_name]
[LIKE 'pattern' | WHERE expr]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, will try it later in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I have a check, this syntax is not support LIKE and only for mysqldump not for user in databend now.
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Reference MySQL 8.0:
https://github.com/mysql/mysql-server/blob/8.0/client/mysqldump.cc
Export:
Import:
Changelog
Related Issues
Fixes #issue