Skip to content

Commit

Permalink
chore: add calendar alignment, geohash grammar (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Sep 10, 2021
1 parent 1a75766 commit 6e9a307
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@questdb/sql-grammar",
"version": "1.0.8",
"version": "1.0.9",
"description": "List of keywords, functions and constants that QuestDB supports",
"main": "lib/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/dataTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default [
"date",
"double",
"float",
"geohash",
"int",
"long",
"long256",
Expand Down
9 changes: 9 additions & 0 deletions src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default [
"batch",
"cast",
"coalesce",
"commitLag",
"concat",
"count",
"dateadd",
Expand All @@ -27,7 +28,9 @@ export default [
"len",
"length",
"long_sequence",
"make_geohash",
"max",
"maxUncommittedRows",
"micros",
"mid",
"millis",
Expand All @@ -45,6 +48,7 @@ export default [
"rnd_date",
"rnd_double",
"rnd_float",
"rnd_geohash",
"rnd_int",
"rnd_long",
"rnd_long256",
Expand All @@ -61,10 +65,15 @@ export default [
"sysdate",
"systimestamp",
"tables_columns",
"timestamp_ceil",
"timestamp_floor",
"timestamp_sequence",
"to_date",
"to_str",
"to_timestamp",
"to_timezone",
"to_utc",
"ucase",
"within",
"year",
]
5 changes: 5 additions & 0 deletions src/keywords.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default [
"add",
"align",
"all",
"alter",
"and",
Expand All @@ -11,6 +12,7 @@ export default [
"between",
"by",
"cache",
"calendar",
"capacity",
"case",
"cast",
Expand Down Expand Up @@ -58,6 +60,7 @@ export default [
"none",
"not",
"null",
"offset",
"on",
"only",
"or",
Expand All @@ -80,6 +83,7 @@ export default [
"table",
"tables",
"then",
"time",
"to",
"transaction",
"truncate",
Expand All @@ -92,4 +96,5 @@ export default [
"where",
"with",
"writer",
"zone",
]

0 comments on commit 6e9a307

Please sign in to comment.