Skip to content

Commit

Permalink
Add enterprise keywords and functions (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
puzpuzpuz authored Nov 15, 2023
1 parent 49c0cef commit 2d2bddb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default [
"VARCHAR",
"abs",
"acos",
"all_permissions",
"all_tables",
"and",
"asin",
Expand Down Expand Up @@ -91,6 +92,7 @@ export default [
"nullif",
"nvl",
"or",
"permissions",
"pg_advisory_unlock_all",
"pg_attrdef",
"pg_attribute",
Expand Down Expand Up @@ -141,6 +143,7 @@ export default [
"rank",
"reader_pool",
"regexp_replace",
"reload_tls",
"replace",
"right",
"rnd_bin",
Expand Down Expand Up @@ -169,7 +172,10 @@ export default [
"rpad",
"rtrim",
"second",
"server_conf",
"server_version",
"session_user",
"show",
"simulate_crash",
"sin",
"size_pretty",
Expand Down Expand Up @@ -219,5 +225,6 @@ export default [
"wal_tables",
"week_of_year",
"within",
"vwap",
"year",
]
41 changes: 41 additions & 0 deletions src/keywords.ts
Original file line number Diff line number Diff line change
@@ -1,45 +1,62 @@
export default [
"account",
"accounts",
"add",
"align",
"all",
"alter",
"and",
"any",
"as",
"asc",
"asof",
"assume",
"attach",
"backup",
"between",
"by",
"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",
Expand All @@ -48,6 +65,7 @@ export default [
"into",
"isolation",
"join",
"jwk",
"key",
"latest",
"left",
Expand All @@ -58,6 +76,7 @@ export default [
"lt",
"nan",
"natural",
"no",
"nocache",
"none",
"not",
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 2d2bddb

Please sign in to comment.