Open rolandwalker opened 3 years ago
Two things:
Thoughts?
That sounds good, will try.
Ideally, we'd form that most-common list dynamically from the user's own history.
Ideally, we'd form that most-common list dynamically from the user's own history.
I believe we have that feature, I can't tell if it is in pgcli or mycli. Let me look it up.
Description
Since the
pygments
library is already required, why not use its list of reserved words for completions?This fixes #767 and should keep us up-to-date. It's really great to have the new
JSON_*
functions.Compared to the previous code, this PR
LEN
andTOP
, which are not MySQL reserved wordsDownsides and bugs:
pygments.lexers._mysql_builtins
does contain a leading underscore, so we should be aware that the library reserves the right to break this usage. We might consider pinning the library version, but I don't honestly expect there will be a problem.exit
,help
,source
,status
,system
,use
. This is fixable, but should we prefer the upper- or lower-case flavor?Checklist
changelog.md
.AUTHORS
file (or it's already there).