@bjornpagen/bumbledb 0.1.0 → 0.2.0
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/COOKBOOK.md +1394 -0
- package/README.md +4 -0
- package/dist/closed.d.ts +60 -37
- package/dist/closed.d.ts.map +1 -1
- package/dist/closed.js +159 -40
- package/dist/closed.js.map +1 -1
- package/dist/count.d.ts +64 -17
- package/dist/count.d.ts.map +1 -1
- package/dist/count.js +37 -14
- package/dist/count.js.map +1 -1
- package/dist/db.d.ts +15 -7
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +13 -5
- package/dist/db.js.map +1 -1
- package/dist/exhume.d.ts +12 -11
- package/dist/exhume.d.ts.map +1 -1
- package/dist/exhume.js +7 -6
- package/dist/exhume.js.map +1 -1
- package/dist/face.d.ts +79 -19
- package/dist/face.d.ts.map +1 -1
- package/dist/face.js +14 -15
- package/dist/face.js.map +1 -1
- package/dist/fields.d.ts +158 -129
- package/dist/fields.d.ts.map +1 -1
- package/dist/fields.js +80 -81
- package/dist/fields.js.map +1 -1
- package/dist/index.d.ts +21 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/dist/lower.d.ts +6 -3
- package/dist/lower.d.ts.map +1 -1
- package/dist/lower.js +48 -17
- package/dist/lower.js.map +1 -1
- package/dist/marshal.d.ts +36 -21
- package/dist/marshal.d.ts.map +1 -1
- package/dist/marshal.js +41 -25
- package/dist/marshal.js.map +1 -1
- package/dist/native.js +2 -2
- package/dist/query/atom.d.ts +332 -174
- package/dist/query/atom.d.ts.map +1 -1
- package/dist/query/atom.js +72 -172
- package/dist/query/atom.js.map +1 -1
- package/dist/query/lower.d.ts +295 -107
- package/dist/query/lower.d.ts.map +1 -1
- package/dist/query/lower.js +860 -388
- package/dist/query/lower.js.map +1 -1
- package/dist/query/predicate.d.ts +69 -88
- package/dist/query/predicate.d.ts.map +1 -1
- package/dist/query/predicate.js +118 -72
- package/dist/query/predicate.js.map +1 -1
- package/dist/query/run.d.ts +19 -16
- package/dist/query/run.d.ts.map +1 -1
- package/dist/query/run.js +31 -24
- package/dist/query/run.js.map +1 -1
- package/dist/query/scope.d.ts +139 -123
- package/dist/query/scope.d.ts.map +1 -1
- package/dist/query/scope.js +71 -115
- package/dist/query/scope.js.map +1 -1
- package/dist/query/select.d.ts +102 -80
- package/dist/query/select.d.ts.map +1 -1
- package/dist/query/select.js +39 -34
- package/dist/query/select.js.map +1 -1
- package/dist/relation.d.ts +33 -36
- package/dist/relation.d.ts.map +1 -1
- package/dist/relation.js +15 -16
- package/dist/relation.js.map +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +19 -8
- package/dist/schema.js.map +1 -1
- package/dist/spec.d.ts +6 -5
- package/dist/spec.d.ts.map +1 -1
- package/dist/spec.js.map +1 -1
- package/dist/statements.d.ts +56 -31
- package/dist/statements.d.ts.map +1 -1
- package/dist/statements.js +38 -13
- package/dist/statements.js.map +1 -1
- package/package.json +4 -3
- package/src/closed.ts +271 -93
- package/src/count.ts +112 -18
- package/src/db.ts +22 -12
- package/src/exhume.ts +12 -11
- package/src/face.ts +114 -22
- package/src/fields.ts +261 -217
- package/src/index.ts +50 -59
- package/src/lower.ts +62 -20
- package/src/marshal.ts +48 -30
- package/src/native.ts +2 -2
- package/src/query/atom.ts +480 -376
- package/src/query/lower.ts +1341 -542
- package/src/query/predicate.ts +198 -161
- package/src/query/run.ts +35 -25
- package/src/query/scope.ts +188 -218
- package/src/query/select.ts +168 -93
- package/src/relation.ts +38 -44
- package/src/schema.ts +22 -12
- package/src/spec.ts +6 -5
- package/src/statements.ts +69 -26
- package/dist/brand.d.ts +0 -59
- package/dist/brand.d.ts.map +0 -1
- package/dist/brand.js +0 -47
- package/dist/brand.js.map +0 -1
- package/src/brand.ts +0 -82
package/dist/query/run.d.ts
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Prepared-query marshaling seams
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the
|
|
9
|
-
*
|
|
10
|
-
*
|
|
2
|
+
* Prepared-query marshaling seams, the two rides every execution takes —
|
|
3
|
+
* the typed params object down to the bridge's positional `QueryParam[]`
|
|
4
|
+
* (registry order = dense `ParamId`s, values tagged by each param's
|
|
5
|
+
* ANCHORING use: the field position or comparison sibling that typed it,
|
|
6
|
+
* op-aware exactly as comparison literals tag), and answer rows
|
|
7
|
+
* (positional, head order) back up to plain objects of BARE structural
|
|
8
|
+
* values — the marshal boundary is pure both ways: the engine computed
|
|
9
|
+
* the answer under the prepared head, so a decoded row that carries every
|
|
10
|
+
* select column IS a row (the trusted read seam), and nothing is asserted
|
|
11
|
+
* on any value. Answers are SETS — no order or limit exists anywhere;
|
|
12
|
+
* hosts sort. The `Prepared` VALUE itself (no lifecycle, GC-reclaimed
|
|
13
|
+
* plan) lives in `#db.ts`.
|
|
11
14
|
*/
|
|
12
15
|
import type { FactValue, QueryParam } from "#native.ts";
|
|
13
|
-
import type { SelectColumn } from "#query/
|
|
16
|
+
import type { SelectColumn } from "#query/atom.ts";
|
|
14
17
|
import type { ParamEntry } from "#query/scope.ts";
|
|
15
18
|
/**
|
|
16
19
|
* Marshals the typed params object to the bridge's positional arguments,
|
|
17
|
-
* in
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
20
|
+
* in registry order (= the lowering's dense `ParamId`s). A missing entry
|
|
21
|
+
* is a typed error naming the param; values tag by the anchoring use's
|
|
22
|
+
* structural type; a set param takes a readonly array (the empty set is
|
|
23
|
+
* legal and matches nothing — the engine's rule).
|
|
21
24
|
*/
|
|
22
25
|
declare function wireParams(entries: readonly ParamEntry[], supplied: Readonly<Record<string, unknown>>): QueryParam[];
|
|
23
26
|
/**
|
|
24
27
|
* Decodes positional answer rows (column order = the program's head order
|
|
25
|
-
* = the select
|
|
26
|
-
*
|
|
28
|
+
* = the select's written order) to named, frozen row objects of bare
|
|
29
|
+
* structural values.
|
|
27
30
|
*/
|
|
28
31
|
declare function decodeAnswers<Row>(select: readonly SelectColumn[], rows: FactValue[][]): Row[];
|
|
29
32
|
export { decodeAnswers, wireParams };
|
package/dist/query/run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/query/run.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/query/run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAe,MAAM,YAAY,CAAA;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAuBjD;;;;;;GAMG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,UAAU,EAAE,CAsB7G;AAkBD;;;;GAIG;AACH,iBAAS,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,GAAG,GAAG,EAAE,CAmBvF;AAED,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,CAAA"}
|
package/dist/query/run.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Prepared-query marshaling seams
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the
|
|
9
|
-
*
|
|
10
|
-
*
|
|
2
|
+
* Prepared-query marshaling seams, the two rides every execution takes —
|
|
3
|
+
* the typed params object down to the bridge's positional `QueryParam[]`
|
|
4
|
+
* (registry order = dense `ParamId`s, values tagged by each param's
|
|
5
|
+
* ANCHORING use: the field position or comparison sibling that typed it,
|
|
6
|
+
* op-aware exactly as comparison literals tag), and answer rows
|
|
7
|
+
* (positional, head order) back up to plain objects of BARE structural
|
|
8
|
+
* values — the marshal boundary is pure both ways: the engine computed
|
|
9
|
+
* the answer under the prepared head, so a decoded row that carries every
|
|
10
|
+
* select column IS a row (the trusted read seam), and nothing is asserted
|
|
11
|
+
* on any value. Answers are SETS — no order or limit exists anywhere;
|
|
12
|
+
* hosts sort. The `Prepared` VALUE itself (no lifecycle, GC-reclaimed
|
|
13
|
+
* plan) lives in `#db.ts`.
|
|
11
14
|
*/
|
|
12
15
|
import * as errors from "@superbuilders/errors";
|
|
13
|
-
import {
|
|
16
|
+
import { taggedCmpLiteral } from "#query/lower.ts";
|
|
14
17
|
/** The 13-bit Allen mask ceiling (`bumbledb/crates/bumbledb/src/allen.rs`: bits above the low 13 are unrepresentable). */
|
|
15
18
|
const ALLEN_ALL_BITS = (1 << 13) - 1;
|
|
16
19
|
/** Tags one supplied mask-param value. */
|
|
@@ -20,12 +23,19 @@ function wireMask(name, value) {
|
|
|
20
23
|
}
|
|
21
24
|
return { kind: "allenMask", mask: value };
|
|
22
25
|
}
|
|
26
|
+
/** Tags one supplied value-param cell by its anchoring use. */
|
|
27
|
+
function wireValue(entry, context, value) {
|
|
28
|
+
if (entry.anchor === undefined) {
|
|
29
|
+
throw errors.new(`param ${entry.name} has no field-anchored use — bind it in an atom or compare it against a bound variable`);
|
|
30
|
+
}
|
|
31
|
+
return taggedCmpLiteral(context, entry.anchor, value, entry.op);
|
|
32
|
+
}
|
|
23
33
|
/**
|
|
24
34
|
* Marshals the typed params object to the bridge's positional arguments,
|
|
25
|
-
* in
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
35
|
+
* in registry order (= the lowering's dense `ParamId`s). A missing entry
|
|
36
|
+
* is a typed error naming the param; values tag by the anchoring use's
|
|
37
|
+
* structural type; a set param takes a readonly array (the empty set is
|
|
38
|
+
* legal and matches nothing — the engine's rule).
|
|
29
39
|
*/
|
|
30
40
|
function wireParams(entries, supplied) {
|
|
31
41
|
return entries.map(function wireOne(entry) {
|
|
@@ -36,29 +46,26 @@ function wireParams(entries, supplied) {
|
|
|
36
46
|
if (entry.shape === "mask") {
|
|
37
47
|
return wireMask(entry.name, value);
|
|
38
48
|
}
|
|
39
|
-
if (entry.data === undefined) {
|
|
40
|
-
throw errors.new(`param ${entry.name}: registry entry carries no declaring field`);
|
|
41
|
-
}
|
|
42
49
|
if (entry.shape === "set") {
|
|
43
50
|
if (!Array.isArray(value)) {
|
|
44
51
|
throw errors.new(`param ${entry.name}: a set param binds a readonly array of values`);
|
|
45
52
|
}
|
|
46
|
-
const data = entry.data;
|
|
47
53
|
return {
|
|
48
54
|
kind: "set",
|
|
49
55
|
values: value.map(function wireElement(element, index) {
|
|
50
|
-
return
|
|
56
|
+
return wireValue(entry, `param ${entry.name}[${index}]`, element);
|
|
51
57
|
})
|
|
52
58
|
};
|
|
53
59
|
}
|
|
54
|
-
return
|
|
60
|
+
return wireValue(entry, `param ${entry.name}`, value);
|
|
55
61
|
});
|
|
56
62
|
}
|
|
57
63
|
/**
|
|
58
64
|
* The read-side trusted seam of answers: a decoded row carrying every
|
|
59
65
|
* select column IS a `Row` — the engine computed it under the prepared
|
|
60
|
-
* head,
|
|
61
|
-
*
|
|
66
|
+
* head, and the values are BARE structural values, so nothing is asserted
|
|
67
|
+
* beyond presence (the store is the proof carrier; no brand exists to
|
|
68
|
+
* re-derive).
|
|
62
69
|
*/
|
|
63
70
|
function isAnswerRow(select, decoded) {
|
|
64
71
|
return select.every(function present(column) {
|
|
@@ -67,8 +74,8 @@ function isAnswerRow(select, decoded) {
|
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
69
76
|
* Decodes positional answer rows (column order = the program's head order
|
|
70
|
-
* = the select
|
|
71
|
-
*
|
|
77
|
+
* = the select's written order) to named, frozen row objects of bare
|
|
78
|
+
* structural values.
|
|
72
79
|
*/
|
|
73
80
|
function decodeAnswers(select, rows) {
|
|
74
81
|
return rows.map(function decodeRow(row) {
|
package/dist/query/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/query/run.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/query/run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAA;AAG/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAGlD,0HAA0H;AAC1H,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAA;AAEpC,0CAA0C;AAC1C,SAAS,QAAQ,CAAC,IAAY,EAAE,KAAc;IAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,cAAc,EAAE,CAAC;QAClG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,IAAI,iFAAiF,CAAC,CAAA;IACjH,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;AAC1C,CAAC;AAED,+DAA+D;AAC/D,SAAS,SAAS,CAAC,KAAiB,EAAE,OAAe,EAAE,KAAc;IACpE,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;QAChC,MAAM,MAAM,CAAC,GAAG,CACf,SAAS,KAAK,CAAC,IAAI,wFAAwF,CAC3G,CAAA;IACF,CAAC;IACD,OAAO,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,CAAA;AAChE,C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
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
2
|
+
* Query scope terms, STRUCTURAL edition: string-named variables and
|
|
3
|
+
* parameters as plain frozen values. A `Var` is a NAME — it is typed by the
|
|
4
|
+
* field it first binds (structurally, off the schema type, through the rule
|
|
5
|
+
* builder's environment), reuse of the name within one rule IS the join,
|
|
6
|
+
* and a domain-mismatched reuse is a compile error (the structural analog
|
|
7
|
+
* of the old brand-equal join — now domain-equal, no value brands
|
|
8
|
+
* anywhere). Params are query-global by name and typed BY USE: the field
|
|
9
|
+
* position or comparison sibling that anchors a param types it, the
|
|
10
|
+
* query's inferred `Params` object is exactly the params the rules use,
|
|
11
|
+
* and a param value that no rule uses simply never registers — the query
|
|
12
|
+
* executes under its own inferred type (the bug-hunt law). This module
|
|
13
|
+
* also owns the environment/typing utilities the whole surface shares:
|
|
14
|
+
* the env shape (var name → field descriptor), the domain-equality
|
|
15
|
+
* judgment, and the record-folding helpers `Params` and `Row` inference
|
|
16
|
+
* ride.
|
|
14
17
|
*/
|
|
15
|
-
import {
|
|
16
|
-
import type { FieldData } from "#fields.ts";
|
|
17
|
-
import type { PredicateData } from "#query/predicate.ts";
|
|
18
|
-
import type { AnySchema } from "#schema.ts";
|
|
18
|
+
import type { AnyField, Infer } from "#fields.ts";
|
|
19
19
|
/**
|
|
20
20
|
* The runtime discriminant of query term values. Host literals (bigints,
|
|
21
|
-
* strings, interval objects
|
|
22
|
-
*
|
|
21
|
+
* strings, interval objects) never carry it, so "is this position a term
|
|
22
|
+
* or a literal" is one property probe, never a guess.
|
|
23
23
|
*/
|
|
24
24
|
declare const term: unique symbol;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* The carrier of a value's INFERRED types (a rule's row/params, a query's
|
|
27
|
+
* row/params, a rec's params). The property is never present at runtime —
|
|
28
|
+
* it exists so inference rides plain values without any brand on any
|
|
29
|
+
* field value.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
declare const inferred: unique symbol;
|
|
32
|
+
/**
|
|
33
|
+
* A query variable — a NAME. Its type comes from the field it first binds
|
|
34
|
+
* in the rule (the builder's environment); reusing the name joins, and a
|
|
35
|
+
* cross-domain reuse is a compile error. Identity is the name, strictly
|
|
36
|
+
* rule-scoped: the same name in two rules names two unrelated variables
|
|
37
|
+
* (exactly as the IR scopes `VarId`).
|
|
38
|
+
*/
|
|
39
|
+
interface Var<Name extends string = string> {
|
|
32
40
|
readonly [term]: "var";
|
|
33
|
-
readonly
|
|
34
|
-
readonly field: string;
|
|
35
|
-
readonly data: FieldData;
|
|
36
|
-
readonly [phantom]?: V;
|
|
41
|
+
readonly name: Name;
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
39
|
-
* A scalar query parameter —
|
|
40
|
-
*
|
|
41
|
-
*
|
|
44
|
+
* A scalar query parameter — `r.param("root")`. The name is the key of the
|
|
45
|
+
* typed params object `execute` takes; the type is the element type of the
|
|
46
|
+
* position that anchors it (a field binding, or the bound-variable side of
|
|
47
|
+
* a comparison).
|
|
42
48
|
*/
|
|
43
|
-
interface Param<Name extends string
|
|
49
|
+
interface Param<Name extends string = string> {
|
|
44
50
|
readonly [term]: "param";
|
|
45
51
|
readonly name: Name;
|
|
46
|
-
readonly relation: string;
|
|
47
|
-
readonly field: string;
|
|
48
|
-
readonly data: FieldData;
|
|
49
|
-
readonly [phantom]?: V;
|
|
50
52
|
}
|
|
51
53
|
/**
|
|
52
|
-
* A set-valued query parameter (the IR's `ParamSet` term)
|
|
53
|
-
* execution to
|
|
54
|
-
* position matches iff the field value is in the set. Legal
|
|
55
|
-
* bindings (positive and negated) and as the right side of `
|
|
56
|
-
* else, exactly as the IR rules it.
|
|
54
|
+
* A set-valued query parameter (the IR's `ParamSet` term) — `r.inSet("frontier")`:
|
|
55
|
+
* bound at execution to a readonly ARRAY of values of the anchoring field's
|
|
56
|
+
* type; a binding position matches iff the field value is in the set. Legal
|
|
57
|
+
* in atom bindings (positive and negated) and as the right side of `eq` —
|
|
58
|
+
* nowhere else, exactly as the IR rules it.
|
|
57
59
|
*/
|
|
58
|
-
interface
|
|
59
|
-
readonly [term]: "
|
|
60
|
+
interface SetParam<Name extends string = string> {
|
|
61
|
+
readonly [term]: "setParam";
|
|
60
62
|
readonly name: Name;
|
|
61
|
-
readonly relation: string;
|
|
62
|
-
readonly field: string;
|
|
63
|
-
readonly data: FieldData;
|
|
64
|
-
readonly [phantom]?: V;
|
|
65
63
|
}
|
|
66
64
|
/**
|
|
67
|
-
* An Allen-mask parameter (the IR's `MaskTerm::Param`)
|
|
68
|
-
* relation as a bind-time argument
|
|
65
|
+
* An Allen-mask parameter (the IR's `MaskTerm::Param`) — the temporal
|
|
66
|
+
* relation as a bind-time argument: one prepared query answers any of the
|
|
69
67
|
* mask questions per execution. Bound to a 13-bit mask number built from
|
|
70
68
|
* the `ALLEN` constants.
|
|
71
69
|
*/
|
|
72
|
-
interface MaskParam<Name extends string> {
|
|
70
|
+
interface MaskParam<Name extends string = string> {
|
|
73
71
|
readonly [term]: "maskParam";
|
|
74
72
|
readonly name: Name;
|
|
75
73
|
}
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
/**
|
|
75
|
+
* The measure of an interval-typed variable (`ir::Term::Measure`):
|
|
76
|
+
* `|[s, e)| = e − s`, u64 — legal as one side of an order comparison, as a
|
|
77
|
+
* select entry, and as the input of `sum`/`min`/`max`; every other position
|
|
78
|
+
* is unwritable, exactly as the IR rejects it typed. A ray has no finite
|
|
79
|
+
* measure — the engine's `MeasureOfRay` execution error; exclude rays first
|
|
80
|
+
* (`allen` against a bounded window).
|
|
81
|
+
*/
|
|
82
|
+
interface Duration<Name extends string = string> {
|
|
83
|
+
readonly [term]: "duration";
|
|
84
|
+
readonly name: Name;
|
|
85
|
+
}
|
|
80
86
|
/** Any scope term value. */
|
|
81
|
-
type AnyTerm =
|
|
82
|
-
/** Narrows an unknown
|
|
87
|
+
type AnyTerm = Var | Param | SetParam | MaskParam | Duration;
|
|
88
|
+
/** Narrows an unknown position value to a scope term (vs a host literal). */
|
|
83
89
|
declare function isTerm(value: unknown): value is AnyTerm;
|
|
84
|
-
/**
|
|
90
|
+
/** Builds one variable term. */
|
|
91
|
+
declare function makeVar<const Name extends string>(name: Name): Var<Name>;
|
|
92
|
+
/** Builds one scalar-parameter term. */
|
|
93
|
+
declare function makeParam<const Name extends string>(name: Name): Param<Name>;
|
|
94
|
+
/** Builds one set-parameter term. */
|
|
95
|
+
declare function makeSetParam<const Name extends string>(name: Name): SetParam<Name>;
|
|
96
|
+
/** Builds one Allen-mask-parameter term. */
|
|
97
|
+
declare function makeMaskParam<const Name extends string>(name: Name): MaskParam<Name>;
|
|
98
|
+
/** Builds one measure term over an interval-typed variable's name. */
|
|
99
|
+
declare function makeDuration<const Name extends string>(name: Name): Duration<Name>;
|
|
100
|
+
/**
|
|
101
|
+
* A rule's typing environment: variable name → the field descriptor it
|
|
102
|
+
* first bound. Purely a TYPE — the runtime twin is the rule's `varFields`
|
|
103
|
+
* record, and the two are built by the same walk.
|
|
104
|
+
*/
|
|
105
|
+
type EnvShape = Record<string, AnyField>;
|
|
106
|
+
/** A params object type — what `execute` takes and inference carries. */
|
|
85
107
|
type ParamsRecord = Readonly<Record<string, unknown>>;
|
|
86
108
|
/** Flattens an intersection into one displayed object type (hover legibility). */
|
|
87
109
|
type Flatten<T> = {
|
|
@@ -90,79 +112,73 @@ type Flatten<T> = {
|
|
|
90
112
|
/** The standard union-to-intersection fold (distributes over `U`). */
|
|
91
113
|
type UnionToIntersection<U> = (U extends unknown ? (member: U) => void : never) extends (member: infer I) => void ? I : never;
|
|
92
114
|
/**
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* array of it, a `MaskParam` a mask number; everything else contributes
|
|
96
|
-
* nothing.
|
|
115
|
+
* Folds a union of per-position record fragments into one flattened record
|
|
116
|
+
* (the machinery both `Params` and `Row` inference ride).
|
|
97
117
|
*/
|
|
98
|
-
type
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
readonly
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
readonly
|
|
108
|
-
} ?
|
|
109
|
-
readonly [K in N]: readonly Exclude<V, undefined>[];
|
|
110
|
-
} : T extends {
|
|
111
|
-
readonly [term]: "maskParam";
|
|
112
|
-
readonly name: infer N extends string;
|
|
113
|
-
} ? {
|
|
114
|
-
readonly [K in N]: number;
|
|
115
|
-
} : Record<never, never>;
|
|
118
|
+
type ShapeOf<U> = [U] extends [never] ? Record<never, never> : Flatten<UnionToIntersection<U>>;
|
|
119
|
+
/** Reads a field descriptor's domain label (S1: the label IS the domain check). */
|
|
120
|
+
type DomainOf<F extends AnyField> = F["domain"];
|
|
121
|
+
/** Reads a field descriptor's width label (`bytes<N>`, `interval<E, W>`); `undefined` when the kind carries none. */
|
|
122
|
+
type WidthOf<F extends AnyField> = F extends {
|
|
123
|
+
readonly width: infer W;
|
|
124
|
+
} ? W : undefined;
|
|
125
|
+
/** Reads an interval descriptor's element kind; `undefined` on scalar kinds. */
|
|
126
|
+
type ElementOf<F extends AnyField> = F extends {
|
|
127
|
+
readonly element: infer E;
|
|
128
|
+
} ? E : undefined;
|
|
116
129
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
130
|
+
* The structural join judgment: two field descriptors join iff kind,
|
|
131
|
+
* domain label, width label, and interval element all agree — the
|
|
132
|
+
* string-literal comparison of descriptor shapes that replaced the value
|
|
133
|
+
* brand (design ruling 3).
|
|
119
134
|
*/
|
|
120
|
-
type
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
interface ParamEntry {
|
|
127
|
-
readonly name: string;
|
|
128
|
-
readonly shape: "value" | "set" | "mask";
|
|
129
|
-
readonly data: FieldData | undefined;
|
|
130
|
-
}
|
|
135
|
+
type JoinOk<A extends AnyField, B extends AnyField> = [A["kind"], DomainOf<A>, WidthOf<A>, ElementOf<A>] extends [
|
|
136
|
+
B["kind"],
|
|
137
|
+
DomainOf<B>,
|
|
138
|
+
WidthOf<B>,
|
|
139
|
+
ElementOf<B>
|
|
140
|
+
] ? [B["kind"], DomainOf<B>, WidthOf<B>, ElementOf<B>] extends [A["kind"], DomainOf<A>, WidthOf<A>, ElementOf<A>] ? true : false : false;
|
|
131
141
|
/**
|
|
132
|
-
* The
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* (
|
|
142
|
+
* The runtime twin of {@link JoinOk}: two field descriptors join iff kind,
|
|
143
|
+
* domain label, width label, and interval element all agree — the same
|
|
144
|
+
* structural comparison the type tier makes, judged on the descriptor
|
|
145
|
+
* VALUES (S1 descriptors are honest at runtime). The rule builders throw
|
|
146
|
+
* through this on a domain-unequal variable reuse, so the wall holds for
|
|
147
|
+
* untyped callers too, not only where the compiler can see.
|
|
136
148
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
/** Creates one empty scope registry over the query's theory. */
|
|
145
|
-
declare function createRegistry(theory: AnySchema): QueryRegistry;
|
|
149
|
+
declare function fieldJoins(a: AnyField, b: AnyField): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Renders one field descriptor for join-mismatch diagnostics — the schema
|
|
152
|
+
* grammar's own spelling (`u64 as HolderId`, `interval<i64, 7> as Window`).
|
|
153
|
+
*/
|
|
154
|
+
declare function renderFieldKind(field: AnyField): string;
|
|
146
155
|
/**
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
156
|
+
* What a PARAM anchored at field `F` accepts at execution: the field's
|
|
157
|
+
* bare value type, exactly. At an interval field the engine resolves the
|
|
158
|
+
* bivalent anchor to the INTERVAL reading (value equality) — the point
|
|
159
|
+
* reading of a param is spelled `pointIn(r.param(...), w)`, whose sibling
|
|
160
|
+
* anchors it element-typed.
|
|
151
161
|
*/
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
|
|
155
|
-
readonly
|
|
156
|
-
|
|
162
|
+
type ParamValueAt<F extends AnyField> = Infer<F>;
|
|
163
|
+
/** Reads a value's inferred-types carrier (rules, queries, recs). */
|
|
164
|
+
type InferredOf<T> = T extends {
|
|
165
|
+
readonly [inferred]?: infer S;
|
|
166
|
+
} ? Exclude<S, undefined> : never;
|
|
167
|
+
/**
|
|
168
|
+
* One registered parameter of a query, as the wire marshal reads it: the
|
|
169
|
+
* name, the wire shape, the field descriptor (or the measure) that anchored
|
|
170
|
+
* it, and the comparison op the anchor came from (`"binding"` for atom
|
|
171
|
+
* positions) — the op keeps literal tagging op-aware at `pointIn`
|
|
172
|
+
* (the bug-hunt fix, preserved). `anchor` is `undefined` only on a query
|
|
173
|
+
* built but not yet anchored by any rule; lowering and the wire both refuse
|
|
174
|
+
* that state typed.
|
|
175
|
+
*/
|
|
176
|
+
interface ParamEntry {
|
|
177
|
+
readonly name: string;
|
|
178
|
+
readonly shape: "value" | "set" | "mask";
|
|
179
|
+
readonly anchor: AnyField | "measure" | undefined;
|
|
180
|
+
readonly op: "binding" | "eq" | "ne" | "lt" | "le" | "gt" | "ge" | "pointIn" | "allen";
|
|
157
181
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
/** Declares one scalar parameter (the `$.param` implementation). */
|
|
161
|
-
declare function scopeParam<Name extends string, V>(registry: QueryRegistry, name: Name, ref: RefNames): Param<Name, V>;
|
|
162
|
-
/** Declares one set parameter (the `$.paramSet` implementation). */
|
|
163
|
-
declare function scopeParamSet<Name extends string, V>(registry: QueryRegistry, name: Name, ref: RefNames): ParamSet<Name, V>;
|
|
164
|
-
/** Declares one Allen-mask parameter (the `$.allenParam` implementation). */
|
|
165
|
-
declare function scopeAllenParam<Name extends string>(registry: QueryRegistry, name: Name): MaskParam<Name>;
|
|
166
|
-
export type { AnyParamTerm, AnyTerm, AnyVar, Flatten, ItemParams, MaskParam, Param, ParamEntry, ParamSet, ParamsRecord, ParamsShape, QueryRegistry, TermContribution, UnionToIntersection, Var };
|
|
167
|
-
export { createRegistry, isTerm, resolveFieldData, scopeAllenParam, scopeParam, scopeParamSet, scopeVar, term };
|
|
182
|
+
export type { AnyTerm, DomainOf, Duration, EnvShape, Flatten, InferredOf, JoinOk, MaskParam, Param, ParamEntry, ParamsRecord, ParamValueAt, SetParam, ShapeOf, UnionToIntersection, Var };
|
|
183
|
+
export { fieldJoins, inferred, isTerm, makeDuration, makeMaskParam, makeParam, makeSetParam, makeVar, renderFieldKind, term };
|
|
168
184
|
//# sourceMappingURL=scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/query/scope.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/query/scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEjD;;;;GAIG;AACH,QAAA,MAAM,IAAI,EAAE,OAAO,MAAsC,CAAA;AAEzD;;;;;GAKG;AACH,QAAA,MAAM,QAAQ,EAAE,OAAO,MAA0C,CAAA;AAEjE;;;;;;GAMG;AACH,UAAU,GAAG,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IACzC,QAAQ,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;CACnB;AAED;;;;;GAKG;AACH,UAAU,KAAK,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IAC3C,QAAQ,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;CACnB;AAED;;;;;;GAMG;AAC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