-
Notifications
You must be signed in to change notification settings - Fork 695
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
sql-statements: use EBNF to render syntax diagrams for BACKUP and RESTORE #4342
sql-statements: use EBNF to render syntax diagrams for BACKUP and RESTORE #4342
Conversation
39a6e89
to
1ea8d98
Compare
/cc @TomShawn (#2618 (comment)) |
LGTM |
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.
LGTM
@g1eny0ung, Thanks for your review. The bot only counts LGTMs from Reviewers and higher roles, but you're still welcome to leave your comments. See the corresponding SIG page for more information. Related SIG: docs(slack). |
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.
LGTM
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #4350 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: kennytm <kennytm@gmail.com>
What is changed, added or deleted? (Required)
Change the synopsis sections of BACKUP, RESTORE and SHOW {BACKUPS|RESTORES} to use the
```ebnf+diagrm
block introduced since pingcap/website-docs#83, replacing the original image-based sqlgrams (which files are deleted).Output preview
The syntax diagrams are now rendered server-side as SVG when building (similar to SQLite3 / IBM DB2 / CockroachDB's docs), and user can also toggle between syntax diagram and the source EBNF (similar to Oracle's docs).
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?