flowquery 1.0.34 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flowquery.min.js +1 -1
- package/dist/graph/database.d.ts +1 -0
- package/dist/graph/database.d.ts.map +1 -1
- package/dist/graph/database.js +43 -6
- package/dist/graph/database.js.map +1 -1
- package/dist/graph/relationship.d.ts +3 -1
- package/dist/graph/relationship.d.ts.map +1 -1
- package/dist/graph/relationship.js +12 -4
- package/dist/graph/relationship.js.map +1 -1
- package/dist/graph/relationship_data.js +1 -1
- package/dist/graph/relationship_data.js.map +1 -1
- package/dist/graph/relationship_match_collector.d.ts.map +1 -1
- package/dist/graph/relationship_match_collector.js +6 -3
- package/dist/graph/relationship_match_collector.js.map +1 -1
- package/dist/graph/relationship_reference.js +1 -1
- package/dist/graph/relationship_reference.js.map +1 -1
- package/dist/parsing/data_structures/lookup.d.ts.map +1 -1
- package/dist/parsing/data_structures/lookup.js +5 -1
- package/dist/parsing/data_structures/lookup.js.map +1 -1
- package/dist/parsing/functions/coalesce.d.ts +17 -0
- package/dist/parsing/functions/coalesce.d.ts.map +1 -0
- package/dist/parsing/functions/coalesce.js +61 -0
- package/dist/parsing/functions/coalesce.js.map +1 -0
- package/dist/parsing/functions/date.d.ts +22 -0
- package/dist/parsing/functions/date.d.ts.map +1 -0
- package/dist/parsing/functions/date.js +71 -0
- package/dist/parsing/functions/date.js.map +1 -0
- package/dist/parsing/functions/datetime.d.ts +22 -0
- package/dist/parsing/functions/datetime.d.ts.map +1 -0
- package/dist/parsing/functions/datetime.js +71 -0
- package/dist/parsing/functions/datetime.js.map +1 -0
- package/dist/parsing/functions/duration.d.ts +7 -0
- package/dist/parsing/functions/duration.d.ts.map +1 -0
- package/dist/parsing/functions/duration.js +145 -0
- package/dist/parsing/functions/duration.js.map +1 -0
- package/dist/parsing/functions/element_id.d.ts +7 -0
- package/dist/parsing/functions/element_id.d.ts.map +1 -0
- package/dist/parsing/functions/element_id.js +58 -0
- package/dist/parsing/functions/element_id.js.map +1 -0
- package/dist/parsing/functions/function_factory.d.ts +21 -0
- package/dist/parsing/functions/function_factory.d.ts.map +1 -1
- package/dist/parsing/functions/function_factory.js +21 -0
- package/dist/parsing/functions/function_factory.js.map +1 -1
- package/dist/parsing/functions/head.d.ts +7 -0
- package/dist/parsing/functions/head.d.ts.map +1 -0
- package/dist/parsing/functions/head.js +53 -0
- package/dist/parsing/functions/head.js.map +1 -0
- package/dist/parsing/functions/id.d.ts +7 -0
- package/dist/parsing/functions/id.d.ts.map +1 -0
- package/dist/parsing/functions/id.js +58 -0
- package/dist/parsing/functions/id.js.map +1 -0
- package/dist/parsing/functions/last.d.ts +7 -0
- package/dist/parsing/functions/last.d.ts.map +1 -0
- package/dist/parsing/functions/last.js +53 -0
- package/dist/parsing/functions/last.js.map +1 -0
- package/dist/parsing/functions/localdatetime.d.ts +21 -0
- package/dist/parsing/functions/localdatetime.d.ts.map +1 -0
- package/dist/parsing/functions/localdatetime.js +71 -0
- package/dist/parsing/functions/localdatetime.js.map +1 -0
- package/dist/parsing/functions/localtime.d.ts +20 -0
- package/dist/parsing/functions/localtime.d.ts.map +1 -0
- package/dist/parsing/functions/localtime.js +67 -0
- package/dist/parsing/functions/localtime.js.map +1 -0
- package/dist/parsing/functions/max.d.ts +14 -0
- package/dist/parsing/functions/max.d.ts.map +1 -0
- package/dist/parsing/functions/max.js +51 -0
- package/dist/parsing/functions/max.js.map +1 -0
- package/dist/parsing/functions/min.d.ts +14 -0
- package/dist/parsing/functions/min.d.ts.map +1 -0
- package/dist/parsing/functions/min.js +51 -0
- package/dist/parsing/functions/min.js.map +1 -0
- package/dist/parsing/functions/nodes.d.ts +7 -0
- package/dist/parsing/functions/nodes.d.ts.map +1 -0
- package/dist/parsing/functions/nodes.js +63 -0
- package/dist/parsing/functions/nodes.js.map +1 -0
- package/dist/parsing/functions/predicate_sum.d.ts.map +1 -1
- package/dist/parsing/functions/predicate_sum.js +13 -10
- package/dist/parsing/functions/predicate_sum.js.map +1 -1
- package/dist/parsing/functions/properties.d.ts +7 -0
- package/dist/parsing/functions/properties.d.ts.map +1 -0
- package/dist/parsing/functions/properties.js +74 -0
- package/dist/parsing/functions/properties.js.map +1 -0
- package/dist/parsing/functions/relationships.d.ts +7 -0
- package/dist/parsing/functions/relationships.d.ts.map +1 -0
- package/dist/parsing/functions/relationships.js +61 -0
- package/dist/parsing/functions/relationships.js.map +1 -0
- package/dist/parsing/functions/schema.d.ts +5 -2
- package/dist/parsing/functions/schema.d.ts.map +1 -1
- package/dist/parsing/functions/schema.js +7 -4
- package/dist/parsing/functions/schema.js.map +1 -1
- package/dist/parsing/functions/tail.d.ts +7 -0
- package/dist/parsing/functions/tail.d.ts.map +1 -0
- package/dist/parsing/functions/tail.js +50 -0
- package/dist/parsing/functions/tail.js.map +1 -0
- package/dist/parsing/functions/temporal_utils.d.ts +39 -0
- package/dist/parsing/functions/temporal_utils.d.ts.map +1 -0
- package/dist/parsing/functions/temporal_utils.js +168 -0
- package/dist/parsing/functions/temporal_utils.js.map +1 -0
- package/dist/parsing/functions/time.d.ts +20 -0
- package/dist/parsing/functions/time.d.ts.map +1 -0
- package/dist/parsing/functions/time.js +67 -0
- package/dist/parsing/functions/time.js.map +1 -0
- package/dist/parsing/functions/timestamp.d.ts +17 -0
- package/dist/parsing/functions/timestamp.d.ts.map +1 -0
- package/dist/parsing/functions/timestamp.js +51 -0
- package/dist/parsing/functions/timestamp.js.map +1 -0
- package/dist/parsing/functions/to_float.d.ts +7 -0
- package/dist/parsing/functions/to_float.d.ts.map +1 -0
- package/dist/parsing/functions/to_float.js +61 -0
- package/dist/parsing/functions/to_float.js.map +1 -0
- package/dist/parsing/functions/to_integer.d.ts +7 -0
- package/dist/parsing/functions/to_integer.d.ts.map +1 -0
- package/dist/parsing/functions/to_integer.js +61 -0
- package/dist/parsing/functions/to_integer.js.map +1 -0
- package/dist/parsing/functions/trim.d.ts +7 -0
- package/dist/parsing/functions/trim.d.ts.map +1 -0
- package/dist/parsing/functions/trim.js +37 -0
- package/dist/parsing/functions/trim.js.map +1 -0
- package/dist/parsing/operations/group_by.d.ts.map +1 -1
- package/dist/parsing/operations/group_by.js +4 -2
- package/dist/parsing/operations/group_by.js.map +1 -1
- package/dist/parsing/parser.d.ts.map +1 -1
- package/dist/parsing/parser.js +15 -2
- package/dist/parsing/parser.js.map +1 -1
- package/docs/flowquery.min.js +1 -1
- package/flowquery-py/pyproject.toml +1 -1
- package/flowquery-py/src/graph/database.py +44 -11
- package/flowquery-py/src/graph/relationship.py +11 -3
- package/flowquery-py/src/graph/relationship_data.py +2 -1
- package/flowquery-py/src/graph/relationship_match_collector.py +7 -1
- package/flowquery-py/src/graph/relationship_reference.py +2 -2
- package/flowquery-py/src/parsing/data_structures/lookup.py +2 -0
- package/flowquery-py/src/parsing/functions/__init__.py +42 -2
- package/flowquery-py/src/parsing/functions/coalesce.py +44 -0
- package/flowquery-py/src/parsing/functions/date_.py +63 -0
- package/flowquery-py/src/parsing/functions/datetime_.py +64 -0
- package/flowquery-py/src/parsing/functions/duration.py +159 -0
- package/flowquery-py/src/parsing/functions/element_id.py +50 -0
- package/flowquery-py/src/parsing/functions/head.py +39 -0
- package/flowquery-py/src/parsing/functions/id_.py +49 -0
- package/flowquery-py/src/parsing/functions/last.py +39 -0
- package/flowquery-py/src/parsing/functions/localdatetime.py +62 -0
- package/flowquery-py/src/parsing/functions/localtime.py +59 -0
- package/flowquery-py/src/parsing/functions/max_.py +49 -0
- package/flowquery-py/src/parsing/functions/min_.py +49 -0
- package/flowquery-py/src/parsing/functions/nodes.py +48 -0
- package/flowquery-py/src/parsing/functions/predicate_sum.py +3 -6
- package/flowquery-py/src/parsing/functions/properties.py +50 -0
- package/flowquery-py/src/parsing/functions/relationships.py +46 -0
- package/flowquery-py/src/parsing/functions/schema.py +9 -5
- package/flowquery-py/src/parsing/functions/tail.py +37 -0
- package/flowquery-py/src/parsing/functions/temporal_utils.py +186 -0
- package/flowquery-py/src/parsing/functions/time_.py +59 -0
- package/flowquery-py/src/parsing/functions/timestamp.py +39 -0
- package/flowquery-py/src/parsing/functions/to_float.py +46 -0
- package/flowquery-py/src/parsing/functions/to_integer.py +46 -0
- package/flowquery-py/src/parsing/functions/trim.py +35 -0
- package/flowquery-py/src/parsing/operations/group_by.py +2 -0
- package/flowquery-py/src/parsing/parser.py +12 -2
- package/flowquery-py/tests/compute/test_runner.py +1082 -4
- package/flowquery-vscode/flowQueryEngine/flowquery.min.js +1 -1
- package/package.json +1 -1
- package/src/graph/database.ts +42 -4
- package/src/graph/relationship.ts +12 -4
- package/src/graph/relationship_data.ts +1 -1
- package/src/graph/relationship_match_collector.ts +6 -2
- package/src/graph/relationship_reference.ts +1 -1
- package/src/parsing/data_structures/lookup.ts +8 -4
- package/src/parsing/functions/coalesce.ts +50 -0
- package/src/parsing/functions/date.ts +65 -0
- package/src/parsing/functions/datetime.ts +65 -0
- package/src/parsing/functions/duration.ts +143 -0
- package/src/parsing/functions/element_id.ts +51 -0
- package/src/parsing/functions/function_factory.ts +21 -0
- package/src/parsing/functions/head.ts +42 -0
- package/src/parsing/functions/id.ts +51 -0
- package/src/parsing/functions/last.ts +42 -0
- package/src/parsing/functions/localdatetime.ts +65 -0
- package/src/parsing/functions/localtime.ts +60 -0
- package/src/parsing/functions/max.ts +37 -0
- package/src/parsing/functions/min.ts +37 -0
- package/src/parsing/functions/nodes.ts +54 -0
- package/src/parsing/functions/predicate_sum.ts +17 -12
- package/src/parsing/functions/properties.ts +56 -0
- package/src/parsing/functions/relationships.ts +52 -0
- package/src/parsing/functions/schema.ts +7 -4
- package/src/parsing/functions/tail.ts +39 -0
- package/src/parsing/functions/temporal_utils.ts +180 -0
- package/src/parsing/functions/time.ts +60 -0
- package/src/parsing/functions/timestamp.ts +41 -0
- package/src/parsing/functions/to_float.ts +50 -0
- package/src/parsing/functions/to_integer.ts +50 -0
- package/src/parsing/functions/trim.ts +25 -0
- package/src/parsing/operations/group_by.ts +4 -1
- package/src/parsing/parser.ts +15 -2
- package/tests/compute/runner.test.ts +1005 -3
- package/tests/parsing/parser.test.ts +37 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relationships.js","sourceRoot":"","sources":["../../../src/parsing/functions/relationships.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,0DAAkC;AAClC,2DAAkD;AAmBlD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,kBAAQ;IAChC;QACI,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,uBAAuB,GAAG,CAAC,CAAC;IACrC,CAAC;IAEM,KAAK;QACR,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QAC3C,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACtC,OAAO,EAAE,CAAC;QACd,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;QAC9D,CAAC;QACD,mEAAmE;QACnE,oCAAoC;QACpC,iGAAiG;QACjG,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,OAAY,EAAE,EAAE;YAChC,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAC3E,OAAO,KAAK,CAAC;YACjB,CAAC;YACD,OAAO,CACH,MAAM,IAAI,OAAO;gBACjB,WAAW,IAAI,OAAO;gBACtB,SAAS,IAAI,OAAO;gBACpB,YAAY,IAAI,OAAO,CAC1B,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA7BK,aAAa;IAjBlB,IAAA,+BAAW,EAAC;QACT,WAAW,EAAE,iDAAiD;QAC9D,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE;YACR;gBACI,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE,kDAAkD;gBAC/D,IAAI,EAAE,OAAO;aAChB;SACJ;QACD,MAAM,EAAE;YACJ,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,oDAAoD;SAChE;QACD,QAAQ,EAAE,CAAC,8DAA8D,CAAC;KAC7E,CAAC;GACI,aAAa,CA6BlB;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -2,8 +2,11 @@ import AsyncFunction from "./async_function";
|
|
|
2
2
|
/**
|
|
3
3
|
* Built-in function that returns the graph schema of the database.
|
|
4
4
|
*
|
|
5
|
-
* Lists all nodes and relationships with their labels/types
|
|
6
|
-
* of their data (excluding id from nodes, left_id and right_id from relationships).
|
|
5
|
+
* Lists all nodes and relationships with their labels/types, properties,
|
|
6
|
+
* and a sample of their data (excluding id from nodes, left_id and right_id from relationships).
|
|
7
|
+
*
|
|
8
|
+
* Nodes: {label, properties, sample}
|
|
9
|
+
* Relationships: {type, from_label, to_label, properties, sample}
|
|
7
10
|
*
|
|
8
11
|
* @example
|
|
9
12
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/schema.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAG7C
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/schema.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAG7C;;;;;;;;;;;;;GAaG;AACH,cAWM,MAAO,SAAQ,aAAa;IAChB,QAAQ,IAAI,cAAc,CAAC,GAAG,CAAC;CAMhD;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -28,8 +28,11 @@ const function_metadata_1 = require("./function_metadata");
|
|
|
28
28
|
/**
|
|
29
29
|
* Built-in function that returns the graph schema of the database.
|
|
30
30
|
*
|
|
31
|
-
* Lists all nodes and relationships with their labels/types
|
|
32
|
-
* of their data (excluding id from nodes, left_id and right_id from relationships).
|
|
31
|
+
* Lists all nodes and relationships with their labels/types, properties,
|
|
32
|
+
* and a sample of their data (excluding id from nodes, left_id and right_id from relationships).
|
|
33
|
+
*
|
|
34
|
+
* Nodes: {label, properties, sample}
|
|
35
|
+
* Relationships: {type, from_label, to_label, properties, sample}
|
|
33
36
|
*
|
|
34
37
|
* @example
|
|
35
38
|
* ```
|
|
@@ -48,11 +51,11 @@ let Schema = class Schema extends async_function_1.default {
|
|
|
48
51
|
};
|
|
49
52
|
Schema = __decorate([
|
|
50
53
|
(0, function_metadata_1.FunctionDef)({
|
|
51
|
-
description: "Returns the graph schema listing all nodes and relationships with a sample of their data.",
|
|
54
|
+
description: "Returns the graph schema listing all nodes and relationships with their properties and a sample of their data.",
|
|
52
55
|
category: "async",
|
|
53
56
|
parameters: [],
|
|
54
57
|
output: {
|
|
55
|
-
description: "Schema entry with
|
|
58
|
+
description: "Schema entry with label/type, properties, and optional sample data",
|
|
56
59
|
type: "object",
|
|
57
60
|
},
|
|
58
61
|
examples: ["LOAD FROM schema() AS s RETURN s"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/parsing/functions/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAA4C;AAC5C,sEAA6C;AAC7C,2DAAkD;AAElD
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/parsing/functions/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAA4C;AAC5C,sEAA6C;AAC7C,2DAAkD;AAElD;;;;;;;;;;;;;GAaG;AAYH,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAa;IAChB,QAAQ;;YAClB,MAAM,OAAO,GAAG,cAAM,kBAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAA,CAAC;YACtD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;gBAC1B,oBAAM,KAAK,CAAA,CAAC;YAChB,CAAC;QACL,CAAC;KAAA;CACJ,CAAA;AAPK,MAAM;IAXX,IAAA,+BAAW,EAAC;QACT,WAAW,EACP,gHAAgH;QACpH,QAAQ,EAAE,OAAO;QACjB,UAAU,EAAE,EAAE;QACd,MAAM,EAAE;YACJ,WAAW,EAAE,oEAAoE;YACjF,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE,CAAC,kCAAkC,CAAC;KACjD,CAAC;GACI,MAAM,CAOX;AAED,kBAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tail.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/tail.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAGlC,cAiBM,IAAK,SAAQ,QAAQ;;IAMhB,KAAK,IAAI,GAAG;CAUtB;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const function_1 = __importDefault(require("./function"));
|
|
13
|
+
const function_metadata_1 = require("./function_metadata");
|
|
14
|
+
let Tail = class Tail extends function_1.default {
|
|
15
|
+
constructor() {
|
|
16
|
+
super("tail");
|
|
17
|
+
this._expectedParameterCount = 1;
|
|
18
|
+
}
|
|
19
|
+
value() {
|
|
20
|
+
const val = this.getChildren()[0].value();
|
|
21
|
+
if (val === null || val === undefined) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
if (!Array.isArray(val)) {
|
|
25
|
+
throw new Error("tail() expects a list");
|
|
26
|
+
}
|
|
27
|
+
return val.slice(1);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
Tail = __decorate([
|
|
31
|
+
(0, function_metadata_1.FunctionDef)({
|
|
32
|
+
description: "Returns all elements of a list except the first",
|
|
33
|
+
category: "scalar",
|
|
34
|
+
parameters: [
|
|
35
|
+
{
|
|
36
|
+
name: "list",
|
|
37
|
+
description: "The list to get all but the first element from",
|
|
38
|
+
type: "array",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
output: {
|
|
42
|
+
description: "All elements except the first",
|
|
43
|
+
type: "array",
|
|
44
|
+
example: "[2, 3]",
|
|
45
|
+
},
|
|
46
|
+
examples: ["RETURN tail([1, 2, 3])", "WITH ['a', 'b', 'c'] AS items RETURN tail(items)"],
|
|
47
|
+
})
|
|
48
|
+
], Tail);
|
|
49
|
+
exports.default = Tail;
|
|
50
|
+
//# sourceMappingURL=tail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tail.js","sourceRoot":"","sources":["../../../src/parsing/functions/tail.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,0DAAkC;AAClC,2DAAkD;AAmBlD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,kBAAQ;IACvB;QACI,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,uBAAuB,GAAG,CAAC,CAAC;IACrC,CAAC;IAEM,KAAK;QACR,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QAC1C,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACpC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACxB,CAAC;CACJ,CAAA;AAhBK,IAAI;IAjBT,IAAA,+BAAW,EAAC;QACT,WAAW,EAAE,iDAAiD;QAC9D,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE;YACR;gBACI,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE,gDAAgD;gBAC7D,IAAI,EAAE,OAAO;aAChB;SACJ;QACD,MAAM,EAAE;YACJ,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,QAAQ;SACpB;QACD,QAAQ,EAAE,CAAC,wBAAwB,EAAE,kDAAkD,CAAC;KAC3F,CAAC;GACI,IAAI,CAgBT;AAED,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared utility functions for temporal (date/time) operations.
|
|
3
|
+
*
|
|
4
|
+
* These helpers are used by the datetime, date, time, localdatetime,
|
|
5
|
+
* localtime, and timestamp functions.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Parses a temporal argument (string or map) into a Date object.
|
|
9
|
+
*
|
|
10
|
+
* @param arg - The argument to parse (string or object with year/month/day/hour/minute/second/millisecond)
|
|
11
|
+
* @param fnName - The calling function name for error messages
|
|
12
|
+
* @returns A Date object
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseTemporalArg(arg: any, fnName: string): Date;
|
|
15
|
+
/**
|
|
16
|
+
* Builds a datetime result object with full temporal properties.
|
|
17
|
+
*
|
|
18
|
+
* @param d - The Date object
|
|
19
|
+
* @param utc - If true, use UTC values; if false, use local values
|
|
20
|
+
* @returns An object with year, month, day, hour, minute, second, millisecond,
|
|
21
|
+
* epochMillis, epochSeconds, dayOfWeek, dayOfYear, quarter, formatted
|
|
22
|
+
*/
|
|
23
|
+
export declare function buildDatetimeObject(d: Date, utc: boolean): Record<string, any>;
|
|
24
|
+
/**
|
|
25
|
+
* Builds a date result object (no time component).
|
|
26
|
+
*
|
|
27
|
+
* @param d - The Date object
|
|
28
|
+
* @returns An object with year, month, day, epochMillis, dayOfWeek, dayOfYear, quarter, formatted
|
|
29
|
+
*/
|
|
30
|
+
export declare function buildDateObject(d: Date): Record<string, any>;
|
|
31
|
+
/**
|
|
32
|
+
* Builds a time result object (no date component).
|
|
33
|
+
*
|
|
34
|
+
* @param d - The Date object
|
|
35
|
+
* @param utc - If true, use UTC values; if false, use local values
|
|
36
|
+
* @returns An object with hour, minute, second, millisecond, formatted
|
|
37
|
+
*/
|
|
38
|
+
export declare function buildTimeObject(d: Date, utc: boolean): Record<string, any>;
|
|
39
|
+
//# sourceMappingURL=temporal_utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal_utils.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/temporal_utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA+CH;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CA6B/D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA8B9E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAkB5D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAgB1E"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shared utility functions for temporal (date/time) operations.
|
|
4
|
+
*
|
|
5
|
+
* These helpers are used by the datetime, date, time, localdatetime,
|
|
6
|
+
* localtime, and timestamp functions.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.parseTemporalArg = parseTemporalArg;
|
|
10
|
+
exports.buildDatetimeObject = buildDatetimeObject;
|
|
11
|
+
exports.buildDateObject = buildDateObject;
|
|
12
|
+
exports.buildTimeObject = buildTimeObject;
|
|
13
|
+
/**
|
|
14
|
+
* Computes the ISO day of the week (1 = Monday, 7 = Sunday) matching Neo4j convention.
|
|
15
|
+
*/
|
|
16
|
+
function isoDayOfWeek(d) {
|
|
17
|
+
const jsDay = d.getDay(); // 0 = Sunday, 6 = Saturday
|
|
18
|
+
return jsDay === 0 ? 7 : jsDay;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Computes the day of the year (1-based).
|
|
22
|
+
*/
|
|
23
|
+
function dayOfYear(d) {
|
|
24
|
+
const start = new Date(d.getFullYear(), 0, 0);
|
|
25
|
+
const diff = d.getTime() - start.getTime();
|
|
26
|
+
const oneDay = 1000 * 60 * 60 * 24;
|
|
27
|
+
return Math.floor(diff / oneDay);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Computes the quarter (1-4) from a month (0-11).
|
|
31
|
+
*/
|
|
32
|
+
function quarter(month) {
|
|
33
|
+
return Math.floor(month / 3) + 1;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Pads a number to a given width with leading zeros.
|
|
37
|
+
*/
|
|
38
|
+
function pad(n, width = 2) {
|
|
39
|
+
return String(n).padStart(width, "0");
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Formats a timezone offset in ±HH:MM format.
|
|
43
|
+
*/
|
|
44
|
+
function formatTimezoneOffset(d) {
|
|
45
|
+
const offset = -d.getTimezoneOffset();
|
|
46
|
+
if (offset === 0)
|
|
47
|
+
return "Z";
|
|
48
|
+
const sign = offset > 0 ? "+" : "-";
|
|
49
|
+
const absOffset = Math.abs(offset);
|
|
50
|
+
const hours = Math.floor(absOffset / 60);
|
|
51
|
+
const minutes = absOffset % 60;
|
|
52
|
+
return `${sign}${pad(hours)}:${pad(minutes)}`;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Parses a temporal argument (string or map) into a Date object.
|
|
56
|
+
*
|
|
57
|
+
* @param arg - The argument to parse (string or object with year/month/day/hour/minute/second/millisecond)
|
|
58
|
+
* @param fnName - The calling function name for error messages
|
|
59
|
+
* @returns A Date object
|
|
60
|
+
*/
|
|
61
|
+
function parseTemporalArg(arg, fnName) {
|
|
62
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
63
|
+
if (typeof arg === "string") {
|
|
64
|
+
const d = new Date(arg);
|
|
65
|
+
if (isNaN(d.getTime())) {
|
|
66
|
+
throw new Error(`${fnName}(): Invalid temporal string: '${arg}'`);
|
|
67
|
+
}
|
|
68
|
+
return d;
|
|
69
|
+
}
|
|
70
|
+
if (typeof arg === "number") {
|
|
71
|
+
// Treat as epoch milliseconds
|
|
72
|
+
return new Date(arg);
|
|
73
|
+
}
|
|
74
|
+
if (typeof arg === "object" && arg !== null && !Array.isArray(arg)) {
|
|
75
|
+
// Map-style construction: {year, month, day, hour, minute, second, millisecond}
|
|
76
|
+
const year = (_a = arg.year) !== null && _a !== void 0 ? _a : new Date().getFullYear();
|
|
77
|
+
const month = ((_b = arg.month) !== null && _b !== void 0 ? _b : 1) - 1; // JS months are 0-based
|
|
78
|
+
const day = (_c = arg.day) !== null && _c !== void 0 ? _c : 1;
|
|
79
|
+
const hour = (_d = arg.hour) !== null && _d !== void 0 ? _d : 0;
|
|
80
|
+
const minute = (_e = arg.minute) !== null && _e !== void 0 ? _e : 0;
|
|
81
|
+
const second = (_f = arg.second) !== null && _f !== void 0 ? _f : 0;
|
|
82
|
+
const millisecond = (_g = arg.millisecond) !== null && _g !== void 0 ? _g : 0;
|
|
83
|
+
return new Date(year, month, day, hour, minute, second, millisecond);
|
|
84
|
+
}
|
|
85
|
+
throw new Error(`${fnName}(): Expected a string, number (epoch millis), or map argument, got ${typeof arg}`);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Builds a datetime result object with full temporal properties.
|
|
89
|
+
*
|
|
90
|
+
* @param d - The Date object
|
|
91
|
+
* @param utc - If true, use UTC values; if false, use local values
|
|
92
|
+
* @returns An object with year, month, day, hour, minute, second, millisecond,
|
|
93
|
+
* epochMillis, epochSeconds, dayOfWeek, dayOfYear, quarter, formatted
|
|
94
|
+
*/
|
|
95
|
+
function buildDatetimeObject(d, utc) {
|
|
96
|
+
const year = utc ? d.getUTCFullYear() : d.getFullYear();
|
|
97
|
+
const month = utc ? d.getUTCMonth() + 1 : d.getMonth() + 1;
|
|
98
|
+
const day = utc ? d.getUTCDate() : d.getDate();
|
|
99
|
+
const hour = utc ? d.getUTCHours() : d.getHours();
|
|
100
|
+
const minute = utc ? d.getUTCMinutes() : d.getMinutes();
|
|
101
|
+
const second = utc ? d.getUTCSeconds() : d.getSeconds();
|
|
102
|
+
const millisecond = utc ? d.getUTCMilliseconds() : d.getMilliseconds();
|
|
103
|
+
const datePart = new Date(year, month - 1, day);
|
|
104
|
+
const formatted = utc
|
|
105
|
+
? d.toISOString()
|
|
106
|
+
: `${year}-${pad(month)}-${pad(day)}T${pad(hour)}:${pad(minute)}:${pad(second)}.${pad(millisecond, 3)}`;
|
|
107
|
+
return {
|
|
108
|
+
year,
|
|
109
|
+
month,
|
|
110
|
+
day,
|
|
111
|
+
hour,
|
|
112
|
+
minute,
|
|
113
|
+
second,
|
|
114
|
+
millisecond,
|
|
115
|
+
epochMillis: d.getTime(),
|
|
116
|
+
epochSeconds: Math.floor(d.getTime() / 1000),
|
|
117
|
+
dayOfWeek: isoDayOfWeek(datePart),
|
|
118
|
+
dayOfYear: dayOfYear(datePart),
|
|
119
|
+
quarter: quarter(month - 1),
|
|
120
|
+
formatted,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Builds a date result object (no time component).
|
|
125
|
+
*
|
|
126
|
+
* @param d - The Date object
|
|
127
|
+
* @returns An object with year, month, day, epochMillis, dayOfWeek, dayOfYear, quarter, formatted
|
|
128
|
+
*/
|
|
129
|
+
function buildDateObject(d) {
|
|
130
|
+
const year = d.getFullYear();
|
|
131
|
+
const month = d.getMonth() + 1;
|
|
132
|
+
const day = d.getDate();
|
|
133
|
+
// Strip time component for epoch calculation
|
|
134
|
+
const dateOnly = new Date(year, month - 1, day);
|
|
135
|
+
return {
|
|
136
|
+
year,
|
|
137
|
+
month,
|
|
138
|
+
day,
|
|
139
|
+
epochMillis: dateOnly.getTime(),
|
|
140
|
+
dayOfWeek: isoDayOfWeek(dateOnly),
|
|
141
|
+
dayOfYear: dayOfYear(dateOnly),
|
|
142
|
+
quarter: quarter(month - 1),
|
|
143
|
+
formatted: `${year}-${pad(month)}-${pad(day)}`,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Builds a time result object (no date component).
|
|
148
|
+
*
|
|
149
|
+
* @param d - The Date object
|
|
150
|
+
* @param utc - If true, use UTC values; if false, use local values
|
|
151
|
+
* @returns An object with hour, minute, second, millisecond, formatted
|
|
152
|
+
*/
|
|
153
|
+
function buildTimeObject(d, utc) {
|
|
154
|
+
const hour = utc ? d.getUTCHours() : d.getHours();
|
|
155
|
+
const minute = utc ? d.getUTCMinutes() : d.getMinutes();
|
|
156
|
+
const second = utc ? d.getUTCSeconds() : d.getSeconds();
|
|
157
|
+
const millisecond = utc ? d.getUTCMilliseconds() : d.getMilliseconds();
|
|
158
|
+
const timePart = `${pad(hour)}:${pad(minute)}:${pad(second)}.${pad(millisecond, 3)}`;
|
|
159
|
+
const formatted = utc ? `${timePart}Z` : timePart;
|
|
160
|
+
return {
|
|
161
|
+
hour,
|
|
162
|
+
minute,
|
|
163
|
+
second,
|
|
164
|
+
millisecond,
|
|
165
|
+
formatted,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=temporal_utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal_utils.js","sourceRoot":"","sources":["../../../src/parsing/functions/temporal_utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAsDH,4CA6BC;AAUD,kDA8BC;AAQD,0CAkBC;AASD,0CAgBC;AA5KD;;GAEG;AACH,SAAS,YAAY,CAAC,CAAO;IACzB,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,2BAA2B;IACrD,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,SAAS,SAAS,CAAC,CAAO;IACtB,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC;IAC3C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,SAAS,OAAO,CAAC,KAAa;IAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAA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CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IACxD,MAAM,WAAW,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;IAEvE,MAAM,QAAQ,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC;IACrF,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;IAElD,OAAO;QACH,IAAI;QACJ,MAAM;QACN,MAAM;QACN,WAAW;QACX,SAAS;KACZ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Function from "./function";
|
|
2
|
+
/**
|
|
3
|
+
* Returns a time value (with timezone offset awareness).
|
|
4
|
+
* When called with no arguments, returns the current UTC time.
|
|
5
|
+
* When called with a string argument, parses it as an ISO 8601 time.
|
|
6
|
+
*
|
|
7
|
+
* Equivalent to Neo4j's time() function.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```
|
|
11
|
+
* RETURN time() AS now
|
|
12
|
+
* RETURN time('12:30:00') AS t
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare class Time extends Function {
|
|
16
|
+
constructor();
|
|
17
|
+
value(): any;
|
|
18
|
+
}
|
|
19
|
+
export default Time;
|
|
20
|
+
//# sourceMappingURL=time.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/time.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAIlC;;;;;;;;;;;;GAYG;AACH,cAuBM,IAAK,SAAQ,QAAQ;;IAMhB,KAAK,IAAI,GAAG;CAWtB;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const function_1 = __importDefault(require("./function"));
|
|
13
|
+
const function_metadata_1 = require("./function_metadata");
|
|
14
|
+
const temporal_utils_1 = require("./temporal_utils");
|
|
15
|
+
/**
|
|
16
|
+
* Returns a time value (with timezone offset awareness).
|
|
17
|
+
* When called with no arguments, returns the current UTC time.
|
|
18
|
+
* When called with a string argument, parses it as an ISO 8601 time.
|
|
19
|
+
*
|
|
20
|
+
* Equivalent to Neo4j's time() function.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```
|
|
24
|
+
* RETURN time() AS now
|
|
25
|
+
* RETURN time('12:30:00') AS t
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
let Time = class Time extends function_1.default {
|
|
29
|
+
constructor() {
|
|
30
|
+
super("time");
|
|
31
|
+
this._expectedParameterCount = null;
|
|
32
|
+
}
|
|
33
|
+
value() {
|
|
34
|
+
const children = this.getChildren();
|
|
35
|
+
if (children.length > 1) {
|
|
36
|
+
throw new Error("time() accepts at most one argument");
|
|
37
|
+
}
|
|
38
|
+
const d = children.length === 1 ? (0, temporal_utils_1.parseTemporalArg)(children[0].value(), "time") : new Date();
|
|
39
|
+
return (0, temporal_utils_1.buildTimeObject)(d, true);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
Time = __decorate([
|
|
43
|
+
(0, function_metadata_1.FunctionDef)({
|
|
44
|
+
description: "Returns a time value. With no arguments returns the current UTC time. " +
|
|
45
|
+
"Accepts an ISO 8601 time string or a map of components (hour, minute, second, millisecond).",
|
|
46
|
+
category: "scalar",
|
|
47
|
+
parameters: [
|
|
48
|
+
{
|
|
49
|
+
name: "input",
|
|
50
|
+
description: "Optional. An ISO 8601 time string (HH:MM:SS) or a map of components.",
|
|
51
|
+
type: "string",
|
|
52
|
+
required: false,
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
output: {
|
|
56
|
+
description: "A time object with properties: hour, minute, second, millisecond, formatted",
|
|
57
|
+
type: "object",
|
|
58
|
+
},
|
|
59
|
+
examples: [
|
|
60
|
+
"RETURN time() AS now",
|
|
61
|
+
"RETURN time('12:30:00') AS t",
|
|
62
|
+
"WITH time() AS t RETURN t.hour, t.minute",
|
|
63
|
+
],
|
|
64
|
+
})
|
|
65
|
+
], Time);
|
|
66
|
+
exports.default = Time;
|
|
67
|
+
//# sourceMappingURL=time.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.js","sourceRoot":"","sources":["../../../src/parsing/functions/time.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,0DAAkC;AAClC,2DAAkD;AAClD,qDAAqE;AAErE;;;;;;;;;;;;GAYG;AAwBH,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,kBAAQ;IACvB;QACI,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACxC,CAAC;IAEM,KAAK;QACR,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACpC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QAC3D,CAAC;QAED,MAAM,CAAC,GACH,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAA,iCAAgB,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;QAEvF,OAAO,IAAA,gCAAe,EAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;CACJ,CAAA;AAjBK,IAAI;IAvBT,IAAA,+BAAW,EAAC;QACT,WAAW,EACP,wEAAwE;YACxE,6FAA6F;QACjG,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE;YACR;gBACI,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,sEAAsE;gBACnF,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;aAClB;SACJ;QACD,MAAM,EAAE;YACJ,WAAW,EAAE,6EAA6E;YAC1F,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,sBAAsB;YACtB,8BAA8B;YAC9B,0CAA0C;SAC7C;KACJ,CAAC;GACI,IAAI,CAiBT;AAED,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Function from "./function";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z).
|
|
4
|
+
*
|
|
5
|
+
* Equivalent to Neo4j's timestamp() function.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* RETURN timestamp() AS ts
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
declare class Timestamp extends Function {
|
|
13
|
+
constructor();
|
|
14
|
+
value(): any;
|
|
15
|
+
}
|
|
16
|
+
export default Timestamp;
|
|
17
|
+
//# sourceMappingURL=timestamp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/timestamp.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAGlC;;;;;;;;;GASG;AACH,cAgBM,SAAU,SAAQ,QAAQ;;IAMrB,KAAK,IAAI,GAAG;CAGtB;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const function_1 = __importDefault(require("./function"));
|
|
13
|
+
const function_metadata_1 = require("./function_metadata");
|
|
14
|
+
/**
|
|
15
|
+
* Returns the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z).
|
|
16
|
+
*
|
|
17
|
+
* Equivalent to Neo4j's timestamp() function.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```
|
|
21
|
+
* RETURN timestamp() AS ts
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
let Timestamp = class Timestamp extends function_1.default {
|
|
25
|
+
constructor() {
|
|
26
|
+
super("timestamp");
|
|
27
|
+
this._expectedParameterCount = 0;
|
|
28
|
+
}
|
|
29
|
+
value() {
|
|
30
|
+
return Date.now();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
Timestamp = __decorate([
|
|
34
|
+
(0, function_metadata_1.FunctionDef)({
|
|
35
|
+
description: "Returns the number of milliseconds since the Unix epoch (1970-01-01T00:00:00Z). " +
|
|
36
|
+
"Equivalent to Neo4j's timestamp() function.",
|
|
37
|
+
category: "scalar",
|
|
38
|
+
parameters: [],
|
|
39
|
+
output: {
|
|
40
|
+
description: "Milliseconds since Unix epoch",
|
|
41
|
+
type: "number",
|
|
42
|
+
example: 1718450000000,
|
|
43
|
+
},
|
|
44
|
+
examples: [
|
|
45
|
+
"RETURN timestamp() AS ts",
|
|
46
|
+
"WITH timestamp() AS before, timestamp() AS after RETURN after - before",
|
|
47
|
+
],
|
|
48
|
+
})
|
|
49
|
+
], Timestamp);
|
|
50
|
+
exports.default = Timestamp;
|
|
51
|
+
//# sourceMappingURL=timestamp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../src/parsing/functions/timestamp.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,0DAAkC;AAClC,2DAAkD;AAElD;;;;;;;;;GASG;AAiBH,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,kBAAQ;IAC5B;QACI,KAAK,CAAC,WAAW,CAAC,CAAC;QACnB,IAAI,CAAC,uBAAuB,GAAG,CAAC,CAAC;IACrC,CAAC;IAEM,KAAK;QACR,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC;IACtB,CAAC;CACJ,CAAA;AATK,SAAS;IAhBd,IAAA,+BAAW,EAAC;QACT,WAAW,EACP,kFAAkF;YAClF,6CAA6C;QACjD,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE,EAAE;QACd,MAAM,EAAE;YACJ,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;SACzB;QACD,QAAQ,EAAE;YACN,0BAA0B;YAC1B,wEAAwE;SAC3E;KACJ,CAAC;GACI,SAAS,CASd;AAED,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to_float.d.ts","sourceRoot":"","sources":["../../../src/parsing/functions/to_float.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAGlC,cAiBM,OAAQ,SAAQ,QAAQ;;IAMnB,KAAK,IAAI,GAAG;CAqBtB;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const function_1 = __importDefault(require("./function"));
|
|
13
|
+
const function_metadata_1 = require("./function_metadata");
|
|
14
|
+
let ToFloat = class ToFloat extends function_1.default {
|
|
15
|
+
constructor() {
|
|
16
|
+
super("tofloat");
|
|
17
|
+
this._expectedParameterCount = 1;
|
|
18
|
+
}
|
|
19
|
+
value() {
|
|
20
|
+
const val = this.getChildren()[0].value();
|
|
21
|
+
if (val === null || val === undefined) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
if (typeof val === "boolean") {
|
|
25
|
+
return val ? 1.0 : 0.0;
|
|
26
|
+
}
|
|
27
|
+
if (typeof val === "number") {
|
|
28
|
+
return val;
|
|
29
|
+
}
|
|
30
|
+
if (typeof val === "string") {
|
|
31
|
+
const trimmed = val.trim();
|
|
32
|
+
const parsed = Number(trimmed);
|
|
33
|
+
if (isNaN(parsed)) {
|
|
34
|
+
throw new Error(`Cannot convert string "${val}" to float`);
|
|
35
|
+
}
|
|
36
|
+
return parsed;
|
|
37
|
+
}
|
|
38
|
+
throw new Error("toFloat() expects a number, string, or boolean");
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
ToFloat = __decorate([
|
|
42
|
+
(0, function_metadata_1.FunctionDef)({
|
|
43
|
+
description: "Converts a value to a floating point number",
|
|
44
|
+
category: "scalar",
|
|
45
|
+
parameters: [
|
|
46
|
+
{
|
|
47
|
+
name: "value",
|
|
48
|
+
description: "The value to convert to a float",
|
|
49
|
+
type: "any",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
output: {
|
|
53
|
+
description: "The floating point representation of the value",
|
|
54
|
+
type: "number",
|
|
55
|
+
example: "3.14",
|
|
56
|
+
},
|
|
57
|
+
examples: ['RETURN toFloat("3.14")', "RETURN toFloat(42)", "RETURN toFloat(true)"],
|
|
58
|
+
})
|
|
59
|
+
], ToFloat);
|
|
60
|
+
exports.default = ToFloat;
|
|
61
|
+
//# sourceMappingURL=to_float.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to_float.js","sourceRoot":"","sources":["../../../src/parsing/functions/to_float.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,0DAAkC;AAClC,2DAAkD;AAmBlD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,kBAAQ;IAC1B;QACI,KAAK,CAAC,SAAS,CAAC,CAAC;QACjB,IAAI,CAAC,uBAAuB,GAAG,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