@drupflare/spool 0.3.0 → 1.0.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/README.md +279 -1607
- package/dist/angular/index.d.ts +13 -0
- package/dist/angular/index.js +25 -0
- package/dist/angular/pages.d.ts +28 -0
- package/dist/angular/pages.js +85 -0
- package/dist/cdn/client.js +1 -1
- package/dist/cdn/location.d.ts +6 -0
- package/dist/cdn/location.js +8 -0
- package/dist/cdn/manifest.json +7 -7
- package/dist/cdn/spool-sw.js +1 -1
- package/dist/client/bootstrap.d.ts +57 -0
- package/dist/client/bootstrap.js +307 -0
- package/dist/client/contact.d.ts +24 -0
- package/dist/client/contact.js +66 -0
- package/dist/client/declared.d.ts +23 -0
- package/dist/client/declared.js +68 -0
- package/dist/client/entry.js +123 -2
- package/dist/client/gate.d.ts +1 -0
- package/dist/client/gate.js +148 -0
- package/dist/client/index.d.ts +25 -0
- package/dist/client/index.js +1 -0
- package/dist/client/live.d.ts +66 -0
- package/dist/client/live.js +225 -0
- package/dist/client/navigate-entry.d.ts +1 -0
- package/dist/client/navigate-entry.js +4 -0
- package/dist/client/navigate.d.ts +54 -0
- package/dist/client/navigate.js +272 -0
- package/dist/client/persist.d.ts +2 -0
- package/dist/client/persist.js +9 -0
- package/dist/client/register.d.ts +34 -2
- package/dist/client/register.js +64 -7
- package/dist/express/index.d.ts +11 -0
- package/dist/express/index.js +209 -0
- package/dist/hono/index.d.ts +19 -0
- package/dist/hono/index.js +49 -0
- package/dist/next/index.d.ts +33 -0
- package/dist/next/index.js +41 -0
- package/dist/next/pages.d.ts +22 -0
- package/dist/next/pages.js +39 -0
- package/dist/node/listener.d.ts +3 -0
- package/dist/node/listener.js +57 -2
- package/dist/nuxt/index.d.ts +22 -0
- package/dist/nuxt/index.js +104 -0
- package/dist/nuxt/pages.d.ts +26 -0
- package/dist/nuxt/pages.js +48 -0
- package/dist/nuxt/runtime/index.d.ts +24 -0
- package/dist/nuxt/runtime/index.js +58 -0
- package/dist/plugins/coverage.d.ts +14 -0
- package/dist/plugins/coverage.js +27 -0
- package/dist/plugins/mode.d.ts +19 -0
- package/dist/plugins/mode.js +20 -0
- package/dist/plugins/path.d.ts +16 -0
- package/dist/plugins/path.js +139 -0
- package/dist/plugins/report.d.ts +22 -0
- package/dist/plugins/report.js +18 -0
- package/dist/plugins/routes.d.ts +38 -0
- package/dist/plugins/routes.js +52 -0
- package/dist/plugins/static.d.ts +42 -0
- package/dist/plugins/static.js +97 -0
- package/dist/protocol/bundle.d.ts +111 -0
- package/dist/protocol/bundle.js +428 -0
- package/dist/protocol/config.d.ts +80 -1
- package/dist/protocol/config.js +31 -1
- package/dist/protocol/dataset.d.ts +189 -0
- package/dist/protocol/dataset.js +212 -0
- package/dist/protocol/envelope.d.ts +34 -1
- package/dist/protocol/envelope.js +16 -1
- package/dist/protocol/errors.d.ts +1 -1
- package/dist/protocol/graph.d.ts +23 -4
- package/dist/protocol/graph.js +34 -3
- package/dist/protocol/index-rows.d.ts +22 -0
- package/dist/protocol/index-rows.js +53 -0
- package/dist/protocol/index.d.ts +5 -0
- package/dist/protocol/index.js +5 -0
- package/dist/protocol/normalise.d.ts +4 -4
- package/dist/protocol/normalise.js +9 -5
- package/dist/protocol/plan.d.ts +100 -0
- package/dist/protocol/plan.js +661 -0
- package/dist/protocol/provision.d.ts +46 -0
- package/dist/protocol/provision.js +38 -0
- package/dist/protocol/query.d.ts +66 -5
- package/dist/protocol/query.js +103 -4
- package/dist/protocol/ring.d.ts +58 -0
- package/dist/protocol/ring.js +6 -0
- package/dist/protocol/route.d.ts +63 -13
- package/dist/protocol/route.js +126 -6
- package/dist/protocol/tag.d.ts +22 -2
- package/dist/protocol/tag.js +25 -4
- package/dist/protocol/view.d.ts +2 -0
- package/dist/protocol/view.js +8 -2
- package/dist/protocol/views.d.ts +6 -0
- package/dist/protocol/views.js +15 -0
- package/dist/protocol/write.d.ts +234 -0
- package/dist/protocol/write.js +343 -0
- package/dist/proxy/eligible.d.ts +22 -1
- package/dist/proxy/eligible.js +62 -15
- package/dist/proxy/proxy.js +28 -18
- package/dist/react-router/index.d.ts +20 -0
- package/dist/react-router/index.js +60 -0
- package/dist/react-router/pages.d.ts +34 -0
- package/dist/react-router/pages.js +83 -0
- package/dist/report/dataset.d.ts +48 -0
- package/dist/report/dataset.js +93 -0
- package/dist/report/demand.d.ts +49 -0
- package/dist/report/demand.js +60 -0
- package/dist/report/derive.d.ts +285 -0
- package/dist/report/derive.js +676 -1
- package/dist/report/economics.d.ts +66 -1
- package/dist/report/economics.js +208 -1
- package/dist/report/headline.d.ts +158 -0
- package/dist/report/headline.js +473 -0
- package/dist/report/index.d.ts +4 -0
- package/dist/report/index.js +4 -0
- package/dist/report/inputs.d.ts +176 -0
- package/dist/report/inputs.js +248 -0
- package/dist/report/institution.d.ts +188 -1
- package/dist/report/institution.js +146 -0
- package/dist/report/loops.d.ts +73 -0
- package/dist/report/loops.js +101 -0
- package/dist/report/measurement.d.ts +1 -1
- package/dist/report/measurement.js +7 -1
- package/dist/report/model.d.ts +2 -0
- package/dist/report/model.js +4 -0
- package/dist/report/thirdparty.d.ts +57 -0
- package/dist/report/thirdparty.js +111 -0
- package/dist/report/traffic.d.ts +8 -0
- package/dist/report/traffic.js +7 -0
- package/dist/report/trim.d.ts +56 -0
- package/dist/report/trim.js +83 -1
- package/dist/server/bundle.d.ts +55 -0
- package/dist/server/bundle.js +172 -0
- package/dist/server/dataset.d.ts +54 -0
- package/dist/server/dataset.js +355 -0
- package/dist/server/embedded.d.ts +7 -3
- package/dist/server/embedded.js +7 -3
- package/dist/server/index.d.ts +6 -0
- package/dist/server/index.js +6 -0
- package/dist/server/live-sockets.d.ts +54 -0
- package/dist/server/live-sockets.js +131 -0
- package/dist/server/live.d.ts +146 -0
- package/dist/server/live.js +228 -0
- package/dist/server/ring.d.ts +77 -0
- package/dist/server/ring.js +311 -0
- package/dist/server/spool.d.ts +158 -3
- package/dist/server/spool.js +578 -41
- package/dist/server/static.d.ts +42 -0
- package/dist/server/static.js +29 -0
- package/dist/server/stub.d.ts +43 -5
- package/dist/server/stub.js +126 -8
- package/dist/server/write.d.ts +49 -0
- package/dist/server/write.js +223 -0
- package/dist/stores/durable-object.d.ts +46 -0
- package/dist/stores/durable-object.js +114 -0
- package/dist/sw/analytics.d.ts +7 -1
- package/dist/sw/analytics.js +16 -2
- package/dist/sw/coverage.d.ts +6 -0
- package/dist/sw/coverage.js +34 -0
- package/dist/sw/dataset-sync.d.ts +76 -0
- package/dist/sw/dataset-sync.js +149 -0
- package/dist/sw/dataset.d.ts +91 -0
- package/dist/sw/dataset.js +318 -0
- package/dist/sw/family.d.ts +15 -0
- package/dist/sw/family.js +48 -0
- package/dist/sw/graph/index.d.ts +31 -1
- package/dist/sw/graph/index.js +57 -5
- package/dist/sw/graph/invalidate.d.ts +15 -3
- package/dist/sw/graph/invalidate.js +42 -4
- package/dist/sw/idb.d.ts +2 -0
- package/dist/sw/idb.js +80 -11
- package/dist/sw/index.d.ts +2 -0
- package/dist/sw/index.js +1 -0
- package/dist/sw/pack/store.d.ts +128 -0
- package/dist/sw/pack/store.js +737 -0
- package/dist/sw/partition.d.ts +6 -1
- package/dist/sw/partition.js +21 -2
- package/dist/sw/policy.d.ts +2 -0
- package/dist/sw/policy.js +11 -0
- package/dist/sw/principal-dataset.d.ts +64 -0
- package/dist/sw/principal-dataset.js +254 -0
- package/dist/sw/probe.d.ts +16 -0
- package/dist/sw/probe.js +25 -0
- package/dist/sw/render.d.ts +7 -2
- package/dist/sw/render.js +19 -5
- package/dist/sw/replica.d.ts +12 -3
- package/dist/sw/replica.js +40 -5
- package/dist/sw/router.d.ts +3 -2
- package/dist/sw/router.js +15 -2
- package/dist/sw/runtime.d.ts +90 -2
- package/dist/sw/runtime.js +857 -61
- package/dist/sw/scheduler.d.ts +6 -1
- package/dist/sw/scheduler.js +22 -5
- package/dist/sw/seal.d.ts +13 -0
- package/dist/sw/seal.js +13 -4
- package/dist/sw/static.d.ts +18 -0
- package/dist/sw/static.js +84 -1
- package/dist/sw/storage.d.ts +51 -1
- package/dist/sw/storage.js +33 -1
- package/dist/sw/write.d.ts +147 -0
- package/dist/sw/write.js +625 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -2
- package/dist/vite/index.d.ts +26 -0
- package/dist/vite/index.js +66 -0
- package/dist/vue/index.d.ts +36 -0
- package/dist/vue/index.js +53 -0
- package/package.json +65 -4
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { fillPattern } from './pattern.js';
|
|
2
|
+
/** whether a pattern has no param but `key`, so each row has one concrete path */
|
|
3
|
+
function oneParam(pattern, key) {
|
|
4
|
+
const parts = pattern.split('/');
|
|
5
|
+
return (!parts.includes('**') && parts.every((part) => !part.startsWith(':') || part === `:${key}`));
|
|
6
|
+
}
|
|
7
|
+
/** the index tables a route set asks for, read from its public routes */
|
|
8
|
+
export function indexPlan(routes) {
|
|
9
|
+
const paths = [];
|
|
10
|
+
const fields = new Map();
|
|
11
|
+
for (const route of routes) {
|
|
12
|
+
if (route.scope !== 'public')
|
|
13
|
+
continue;
|
|
14
|
+
if (route.family && oneParam(route.pattern, route.family.key)) {
|
|
15
|
+
paths.push({
|
|
16
|
+
dataset: route.family.dataset,
|
|
17
|
+
pattern: route.pattern,
|
|
18
|
+
key: route.family.key
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const query = route.query;
|
|
22
|
+
if (query?.dataset !== undefined && query.plan === undefined) {
|
|
23
|
+
const names = fields.get(query.dataset) ?? new Set();
|
|
24
|
+
fields.set(query.dataset, names);
|
|
25
|
+
for (const name of [...Object.keys(query.filter ?? {}), ...(query.sort ?? [])]) {
|
|
26
|
+
names.add(name);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return { paths, fields: new Map([...fields].map(([dataset, names]) => [dataset, [...names]])) };
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The index rows of one row of `dataset`. With no `row` the key leaves the index: the same tables
|
|
34
|
+
* come back with `null` values, since a path depends on the key alone.
|
|
35
|
+
*/
|
|
36
|
+
export function indexRowsOf(plan, dataset, key, row) {
|
|
37
|
+
const out = [];
|
|
38
|
+
for (const path of plan.paths) {
|
|
39
|
+
if (path.dataset !== dataset)
|
|
40
|
+
continue;
|
|
41
|
+
const at = fillPattern(path.pattern, { [path.key]: key });
|
|
42
|
+
out.push([`path:${dataset}`, at, row === undefined ? null : { key }]);
|
|
43
|
+
}
|
|
44
|
+
const names = plan.fields.get(dataset);
|
|
45
|
+
if (names !== undefined) {
|
|
46
|
+
out.push([`query:${dataset}`, key, row === undefined ? null : projected(row, names)]);
|
|
47
|
+
}
|
|
48
|
+
return out;
|
|
49
|
+
}
|
|
50
|
+
/** the row cut to the named fields it holds */
|
|
51
|
+
function projected(row, names) {
|
|
52
|
+
return Object.fromEntries(names.filter((name) => Object.hasOwn(row, name)).map((name) => [name, row[name]]));
|
|
53
|
+
}
|
package/dist/protocol/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './artifact.js';
|
|
2
2
|
export * from './assembly.js';
|
|
3
3
|
export * from './beacon.js';
|
|
4
|
+
export * from './bundle.js';
|
|
4
5
|
export * from './collector.js';
|
|
5
6
|
export * from './config.js';
|
|
7
|
+
export * from './dataset.js';
|
|
6
8
|
export * from './envelope.js';
|
|
7
9
|
export * from './errors.js';
|
|
8
10
|
export * from './graph.js';
|
|
@@ -12,8 +14,10 @@ export * from './manifest.js';
|
|
|
12
14
|
export * from './navigation.js';
|
|
13
15
|
export * from './normalise.js';
|
|
14
16
|
export * from './pattern.js';
|
|
17
|
+
export * from './plan.js';
|
|
15
18
|
export * from './provision.js';
|
|
16
19
|
export * from './query.js';
|
|
20
|
+
export * from './ring.js';
|
|
17
21
|
export * from './route.js';
|
|
18
22
|
export * from './sync.js';
|
|
19
23
|
export * from './tag.js';
|
|
@@ -21,3 +25,4 @@ export * from './template/compile.js';
|
|
|
21
25
|
export * from './template/interpret.js';
|
|
22
26
|
export * from './vector.js';
|
|
23
27
|
export * from './view.js';
|
|
28
|
+
export * from './write.js';
|
package/dist/protocol/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './artifact.js';
|
|
2
2
|
export * from './assembly.js';
|
|
3
3
|
export * from './beacon.js';
|
|
4
|
+
export * from './bundle.js';
|
|
4
5
|
export * from './collector.js';
|
|
5
6
|
export * from './config.js';
|
|
7
|
+
export * from './dataset.js';
|
|
6
8
|
export * from './envelope.js';
|
|
7
9
|
export * from './errors.js';
|
|
8
10
|
export * from './graph.js';
|
|
@@ -12,8 +14,10 @@ export * from './manifest.js';
|
|
|
12
14
|
export * from './navigation.js';
|
|
13
15
|
export * from './normalise.js';
|
|
14
16
|
export * from './pattern.js';
|
|
17
|
+
export * from './plan.js';
|
|
15
18
|
export * from './provision.js';
|
|
16
19
|
export * from './query.js';
|
|
20
|
+
export * from './ring.js';
|
|
17
21
|
export * from './route.js';
|
|
18
22
|
export * from './sync.js';
|
|
19
23
|
export * from './tag.js';
|
|
@@ -21,3 +25,4 @@ export * from './template/compile.js';
|
|
|
21
25
|
export * from './template/interpret.js';
|
|
22
26
|
export * from './vector.js';
|
|
23
27
|
export * from './view.js';
|
|
28
|
+
export * from './write.js';
|
|
@@ -3,10 +3,10 @@ export type NormaliseOptions = {
|
|
|
3
3
|
ignore?: readonly RegExp[];
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
-
* Reduces markup to what two renders of the same page must share: comments
|
|
7
|
-
*
|
|
8
|
-
* dropped, and every `ignore` match blanked (a per-render nonce, say). It does not
|
|
9
|
-
* attributes or fix tag soup.
|
|
6
|
+
* Reduces markup to what two renders of the same page must share: comments, the inline artifact
|
|
7
|
+
* element and the ring element removed, runs of whitespace collapsed to one space, whitespace
|
|
8
|
+
* between tags dropped, and every `ignore` match blanked (a per-render nonce, say). It does not
|
|
9
|
+
* reorder attributes or fix tag soup.
|
|
10
10
|
*/
|
|
11
11
|
export declare function normalise(html: string, options?: NormaliseOptions): string;
|
|
12
12
|
/** the verdict of {@link equivalent}; a mismatch names where the two first differ */
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { stripInline } from './inline.js';
|
|
2
|
+
import { DELTA_ELEMENT_ID, RING_ELEMENT_ID, WRITES_ELEMENT_ID } from './ring.js';
|
|
2
3
|
const IGNORED = '\u0000';
|
|
4
|
+
const RING = new RegExp(`<script type="application/json" id="(?:${RING_ELEMENT_ID}|${WRITES_ELEMENT_ID}|${DELTA_ELEMENT_ID})">[\\s\\S]*?</script>`, 'g');
|
|
3
5
|
/**
|
|
4
|
-
* Reduces markup to what two renders of the same page must share: comments
|
|
5
|
-
*
|
|
6
|
-
* dropped, and every `ignore` match blanked (a per-render nonce, say). It does not
|
|
7
|
-
* attributes or fix tag soup.
|
|
6
|
+
* Reduces markup to what two renders of the same page must share: comments, the inline artifact
|
|
7
|
+
* element and the ring element removed, runs of whitespace collapsed to one space, whitespace
|
|
8
|
+
* between tags dropped, and every `ignore` match blanked (a per-render nonce, say). It does not
|
|
9
|
+
* reorder attributes or fix tag soup.
|
|
8
10
|
*/
|
|
9
11
|
export function normalise(html, options = {}) {
|
|
10
|
-
let out = stripInline(html)
|
|
12
|
+
let out = stripInline(html)
|
|
13
|
+
.replace(/<!--[\s\S]*?-->/g, '')
|
|
14
|
+
.replace(RING, '');
|
|
11
15
|
for (const pattern of options.ignore ?? []) {
|
|
12
16
|
const flags = pattern.flags.includes('g') ? pattern.flags : `${pattern.flags}g`;
|
|
13
17
|
out = out.replace(new RegExp(pattern.source, flags), IGNORED);
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { QueryResult, Shaped } from './query.js';
|
|
2
|
+
type Plain = Record<string, unknown>;
|
|
3
|
+
export type PlanOp = 'eq' | 'in' | 'gte' | 'lte' | 'prefix';
|
|
4
|
+
/** one condition of a plan; `param` is the URL parameter that supplies its value */
|
|
5
|
+
export type PlanCondition = {
|
|
6
|
+
/** a base field, or `as.field` of a join */
|
|
7
|
+
field: string;
|
|
8
|
+
op: PlanOp;
|
|
9
|
+
param: string;
|
|
10
|
+
type: 'string' | 'number';
|
|
11
|
+
/** prefix only: ASCII-only lowercasing on both sides, as SQLite's lower() does */
|
|
12
|
+
fold?: 'ascii';
|
|
13
|
+
};
|
|
14
|
+
/** an equi-join from the base row; `on[1]` null matches the right dataset's key */
|
|
15
|
+
export type PlanJoin = {
|
|
16
|
+
dataset: string;
|
|
17
|
+
on: [string, string | null];
|
|
18
|
+
type: 'inner' | 'left';
|
|
19
|
+
/** the joined row's name in the output row */
|
|
20
|
+
as: string;
|
|
21
|
+
/** the right row's fields the plan may read */
|
|
22
|
+
fields: string[];
|
|
23
|
+
};
|
|
24
|
+
export type PlanAggregate = 'count' | {
|
|
25
|
+
count: string;
|
|
26
|
+
} | {
|
|
27
|
+
sum: string;
|
|
28
|
+
} | {
|
|
29
|
+
min: string;
|
|
30
|
+
} | {
|
|
31
|
+
max: string;
|
|
32
|
+
} | {
|
|
33
|
+
avg: string;
|
|
34
|
+
};
|
|
35
|
+
/** a read-only query over held datasets, declared on a route and written in JSON */
|
|
36
|
+
export type QueryPlan = {
|
|
37
|
+
/** base fields the plan may read; the output row carries exactly these */
|
|
38
|
+
from: string[];
|
|
39
|
+
join?: PlanJoin[];
|
|
40
|
+
/** conditions, all ANDed; a condition whose parameter is absent is skipped */
|
|
41
|
+
where?: PlanCondition[];
|
|
42
|
+
group?: {
|
|
43
|
+
by: string[];
|
|
44
|
+
aggregates: Record<string, PlanAggregate>;
|
|
45
|
+
};
|
|
46
|
+
/** fields the `sort` parameter may name; a leading minus in the URL sorts descending */
|
|
47
|
+
sort?: string[];
|
|
48
|
+
pageSize: number;
|
|
49
|
+
/** most result rows (groups or joined rows) the plan answers locally */
|
|
50
|
+
limit: number;
|
|
51
|
+
};
|
|
52
|
+
/** the held rows of one dataset in ascending key order (code point order) */
|
|
53
|
+
export type PlanTable = {
|
|
54
|
+
keys: readonly string[];
|
|
55
|
+
rows: ReadonlyMap<string, Plain>;
|
|
56
|
+
index?: TableIndex;
|
|
57
|
+
};
|
|
58
|
+
/** the base table and a way to reach each joined dataset; undefined when it is not held */
|
|
59
|
+
export type PlanTables = {
|
|
60
|
+
base: PlanTable;
|
|
61
|
+
joined(dataset: string): PlanTable | undefined;
|
|
62
|
+
};
|
|
63
|
+
/** the fewest rows a table holds before its fields are indexed; below it a scan is cheaper */
|
|
64
|
+
export declare const INDEX_MIN_ROWS = 200;
|
|
65
|
+
/** a stored value the engine compares exactly as SQLite does; anything else makes a plan not local */
|
|
66
|
+
export declare function plainValue(value: unknown): boolean;
|
|
67
|
+
/** UTF-8 byte order, which SQLite's BINARY collation uses; UTF-16 unit order differs above U+FFFF */
|
|
68
|
+
export declare function compareText(a: string, b: string): number;
|
|
69
|
+
/**
|
|
70
|
+
* Lazy per-field indexes over one table. Each index is built on first use and is only an
|
|
71
|
+
* optimisation: a plan gives the same answer with or without one.
|
|
72
|
+
*/
|
|
73
|
+
export declare class TableIndex {
|
|
74
|
+
#private;
|
|
75
|
+
constructor(keys: readonly string[], rows: ReadonlyMap<string, Plain>);
|
|
76
|
+
/** how many field indexes have been built */
|
|
77
|
+
get built(): number;
|
|
78
|
+
/** how many entries the built indexes hold, across every field */
|
|
79
|
+
get entries(): number;
|
|
80
|
+
/** whether every row's `field` holds a value {@link plainValue} accepts */
|
|
81
|
+
clean(field: string): boolean;
|
|
82
|
+
/** the keys whose `field` equals one of `values`, ascending */
|
|
83
|
+
equal(field: string, values: readonly (number | string)[]): string[];
|
|
84
|
+
/** the keys whose `field` is at least or at most `value`, within the value's type, ascending */
|
|
85
|
+
range(field: string, op: 'gte' | 'lte', value: number | string): string[];
|
|
86
|
+
/** the keys whose `field` starts with `text`, ascending */
|
|
87
|
+
prefix(field: string, fold: 'ascii' | undefined, text: string): string[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Answers a query string from held tables under `plan`, or returns null when the answer is not
|
|
91
|
+
* local: an unknown or repeated parameter, a value the plan refuses, a float or text in a sum, a
|
|
92
|
+
* table that is not held, a boolean or nested value in a declared field, or more result rows than
|
|
93
|
+
* `limit`. Equal to the SQL the plan describes, row for row.
|
|
94
|
+
*/
|
|
95
|
+
export declare function evaluatePlan(plan: QueryPlan, search: string, tables: PlanTables): QueryResult | null;
|
|
96
|
+
/** the page data for a plan route: the stored data with the rows under `list` and a `query` view */
|
|
97
|
+
export declare function shapePlan(list: string, plan: QueryPlan, data: unknown, search: string, tables: PlanTables | undefined): Shaped;
|
|
98
|
+
/** the validated copy of a plan; throws `bad-route` for a plan the engine could not answer exactly */
|
|
99
|
+
export declare function checkPlan(pattern: string, value: unknown): QueryPlan;
|
|
100
|
+
export {};
|