Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

MySQL, Postgres, Redshift and Redis Language Support #26

Merged
merged 19 commits into from
Nov 24, 2017
Merged

MySQL, Postgres, Redshift and Redis Language Support #26

merged 19 commits into from
Nov 24, 2017

Conversation

abacigil
Copy link
Contributor

@abacigil abacigil commented Oct 3, 2017

Added language support for

  • MySQL
  • Postgres,
  • Redshift
  • Redis

Our product ( TeamSQL ) uses Monaco Editor and we currently support databases above and plus MSSQL. MSSQL is currently supported by default.

MySQL
Specific MySQL keywords, operators and builtin functions are updated. Also added double quote support for strings.

Comment lines are defined by -- or /* but MySQL also supports # symbol for commenting.

` (backtick) is quoted identifier in MySQL.

Postgres
Specific Postgres keywords, operators and builtin functions are updated.

" (double quote) is quoted identifier in Postgres.

Redshift

Same as Postgres but different keywords and builtin functions.

Redis
There is no commenting and quoted identifiers in Redis, so removed these identifiers. Added all Redis commands to keywords.

Redis supports single and dobule quote strings.

package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "monaco-languages",
"version": "0.9.0",
"name": "@teamsqlio/monaco-languages",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be in a PR to be merged upstream

@alexdima
Copy link
Member

Thank you! ❤️ This is great !

@alexdima alexdima merged commit fcb300d into microsoft:master Nov 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants