flowquery 1.0.73 → 1.0.75
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/README.md +11 -0
- package/dist/flowquery.min.js +1 -1
- package/dist/parsing/functions/function_factory.d.ts +3 -0
- package/dist/parsing/functions/function_factory.d.ts.map +1 -1
- package/dist/parsing/functions/function_factory.js +3 -0
- package/dist/parsing/functions/function_factory.js.map +1 -1
- package/dist/parsing/functions/log.d.ts +7 -0
- package/dist/parsing/functions/log.d.ts.map +1 -0
- package/dist/parsing/functions/log.js +46 -0
- package/dist/parsing/functions/log.js.map +1 -0
- package/dist/parsing/functions/log10.d.ts +7 -0
- package/dist/parsing/functions/log10.d.ts.map +1 -0
- package/dist/parsing/functions/log10.js +42 -0
- package/dist/parsing/functions/log10.js.map +1 -0
- package/dist/parsing/functions/pow.d.ts +7 -0
- package/dist/parsing/functions/pow.d.ts.map +1 -0
- package/dist/parsing/functions/pow.js +44 -0
- package/dist/parsing/functions/pow.js.map +1 -0
- package/dist/parsing/statement_info_crawler.d.ts +20 -0
- package/dist/parsing/statement_info_crawler.d.ts.map +1 -1
- package/dist/parsing/statement_info_crawler.js +93 -10
- package/dist/parsing/statement_info_crawler.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -671,6 +671,9 @@ UNWIND ["a", "b", "a", "c"] AS s RETURN count(DISTINCT s) AS cnt // 3
|
|
|
671
671
|
| `range(start, end)` | Inclusive integer range | `range(1,3)` → `[1,2,3]` |
|
|
672
672
|
| `round(n)` | Round to nearest integer | `round(3.7)` → `4` |
|
|
673
673
|
| `rand()` | Random float 0–1 | `round(rand()*10)` |
|
|
674
|
+
| `log(n)` | Natural logarithm (base e) | `log(10)` → `2.302...` |
|
|
675
|
+
| `log10(n)` | Base-10 logarithm | `log10(1000)` → `3` |
|
|
676
|
+
| `pow(base, exp)` | Base raised to the power of exponent | `pow(2, 3)` → `8` |
|
|
674
677
|
| `split(str, delim)` | Split string into list | `split("a,b",",")` → `["a","b"]` |
|
|
675
678
|
| `join(list, delim)` | Join list into string | `join(["a","b"],",")` → `"a,b"` |
|
|
676
679
|
| `replace(str, from, to)` | Replace all occurrences | `replace("hello","l","x")` → `"hexxo"` |
|
|
@@ -1021,6 +1024,7 @@ RETURN f.name, f.description, f.category
|
|
|
1021
1024
|
│ SCALAR FUNCTIONS │
|
|
1022
1025
|
├─────────────────────────────────────────────────────────────┤
|
|
1023
1026
|
│ size range round rand split join replace │
|
|
1027
|
+
│ log log10 pow │
|
|
1024
1028
|
│ toLower trim substring toString toInteger toFloat │
|
|
1025
1029
|
│ tojson stringify string_distance keys properties │
|
|
1026
1030
|
│ type coalesce head tail last id elementId labels │
|
|
@@ -1704,6 +1708,13 @@ Notes:
|
|
|
1704
1708
|
property reference.
|
|
1705
1709
|
- Multi-label intersection matches (`MATCH (n:A:B)`) populate every
|
|
1706
1710
|
label in `references[i].labels`.
|
|
1711
|
+
- For queries composed with `UNION` / `UNION ALL`, each output column's
|
|
1712
|
+
lineage is the **union** of the references contributed by every branch
|
|
1713
|
+
(deduplicated by `alias`, `kind`, `property`, and `labels`). The
|
|
1714
|
+
column `kind` is `aggregate` if any branch aggregates, the shared kind
|
|
1715
|
+
when all branches agree, and `expression` otherwise. Node labels,
|
|
1716
|
+
relationship types, and accessed properties are likewise collected
|
|
1717
|
+
from every branch.
|
|
1707
1718
|
|
|
1708
1719
|
#### Combining Lineage and Provenance: `traceRow()` and `lineage()`
|
|
1709
1720
|
|