From 2d2bddb85fa32f2c8a30cb7d45883f7a3c434e58 Mon Sep 17 00:00:00 2001 From: Andrei Pechkurov <37772591+puzpuzpuz@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:50:53 +0300 Subject: [PATCH] Add enterprise keywords and functions (#29) --- src/functions.ts | 7 +++++++ src/keywords.ts | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/src/functions.ts b/src/functions.ts index cf872eb..ac76460 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -6,6 +6,7 @@ export default [ "VARCHAR", "abs", "acos", + "all_permissions", "all_tables", "and", "asin", @@ -91,6 +92,7 @@ export default [ "nullif", "nvl", "or", + "permissions", "pg_advisory_unlock_all", "pg_attrdef", "pg_attribute", @@ -141,6 +143,7 @@ export default [ "rank", "reader_pool", "regexp_replace", + "reload_tls", "replace", "right", "rnd_bin", @@ -169,7 +172,10 @@ export default [ "rpad", "rtrim", "second", + "server_conf", + "server_version", "session_user", + "show", "simulate_crash", "sin", "size_pretty", @@ -219,5 +225,6 @@ export default [ "wal_tables", "week_of_year", "within", + "vwap", "year", ] diff --git a/src/keywords.ts b/src/keywords.ts index 0d18803..7210906 100644 --- a/src/keywords.ts +++ b/src/keywords.ts @@ -1,12 +1,16 @@ export default [ + "account", + "accounts", "add", "align", "all", "alter", "and", + "any", "as", "asc", "asof", + "assume", "attach", "backup", "between", @@ -14,32 +18,45 @@ export default [ "cache", "calendar", "capacity", + "cascade", "case", "cast", + "cancel", "column", "columns", "complete", "copy", "create", "cross", + "current", + "dedup", "database", + "detach", + "details", "default", "delete", + "disable", "desc", "distinct", "drop", "else", + "enable", "end", "except", + "exclude", "exists", + "exit", "explain", "fill", "foreign", "from", "grant", "group", + "groups", "header", + "http", "if", + "ilp", "in", "index", "inner", @@ -48,6 +65,7 @@ export default [ "into", "isolation", "join", + "jwk", "key", "latest", "left", @@ -58,6 +76,7 @@ export default [ "lt", "nan", "natural", + "no", "nocache", "none", "not", @@ -67,20 +86,35 @@ export default [ "only", "or", "order", + "others", "outer", "over", "param", "partition", "partitions", + "password", + "permissions", + "pgwire", + "preceding", "prepare", "primary", + "public", + "range", "references", + "refresh", + "reindex", + "remove", "rename", "repair", + "rest", + "resume", + "revoke", "right", + "row", "sample", "select", "set", + "service", "show", "snapshot", "splice", @@ -91,13 +125,20 @@ export default [ "then", "time", "to", + "token", "transaction", "truncate", + "ttl", "type", + "unbounded", "union", "unlock", "update", + "user", + "users", + "vacuum", "values", + "wal", "when", "where", "with",