aboutsummaryrefslogtreecommitdiffstats
path: root/prototypes/workbench/rules.test.mjs
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-28 00:21:09 +0100
committereunhhu <[email protected]>2026-09-28 00:21:09 +0100
commite5ebe8fde5cd048c1998fd1de1b25bc08803733d (patch)
treecd536ecdf81389b005df7b7145b2b4bac9b9a70c /prototypes/workbench/rules.test.mjs
parentc7a4178b1b2b8702cc2798aa3d31447bd02389e4 (diff)
downloadpure-e5ebe8fde5cd048c1998fd1de1b25bc08803733d.tar.gz
pure-e5ebe8fde5cd048c1998fd1de1b25bc08803733d.zip
Register queries and show them from snapshots
PUT /queries/NAME takes a module compiled with aup query: the node loads and verifies it, checks that its states are the app's (names, types, records) and that it has a view NAME, and keeps it (64 at most; 409 for another app's module, 400 for bytes that are no module, 404 without the view). GET /queries/NAME?from=&count= shows that view from the last save's snapshot with a reader of the query's module, as a declared view is shown, so a query runs beside writes and sees one save whole. A query registered again answers anew. server_queries registers a per-branch total (a correlated fold), a join of history rows with their accounts and tellers, each rich account's rank and a filtered count, checks them against a model of the same transfers, asks while transfers go on, pages, and checks the refusals.
Diffstat (limited to 'prototypes/workbench/rules.test.mjs')
0 files changed, 0 insertions, 0 deletions