Skip to content
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

Generate list of reserved words #6

Open
bpholt opened this issue Jan 27, 2022 · 1 comment
Open

Generate list of reserved words #6

bpholt opened this issue Jan 27, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@bpholt
Copy link
Member

bpholt commented Jan 27, 2022

/**
* This list is derived from the list documented at
* https://dev.mysql.com/doc/refman/8.0/en/keywords.html
*
* The words were extracted by running the following JavaScript snippet:
*
* {{{
* Array
* .from(document.querySelectorAll("ul.itemizedlist code.literal"))
* .filter(x => x.nextSibling?.textContent.startsWith(" (R)"))
* .map(x => `"${x.textContent}",`)
* .join("\n")
* }}}
*/
private val reservedWords: Set[String] =

It seems like this could probably be something that is generated during the build process, instead of having to be done manually. Just a note for the future, if someone is looking for a way to contribute.

@bpholt bpholt added the help wanted Extra attention is needed label Jan 27, 2022
@DhruvPhumbhra
Copy link
Contributor

Is this something that has to be generated every time? Seems like these don't change for minor version changes and some amount of manual interaction will be needed for major version upgrades anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants