aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-28 04:51:16 +0100
committereunhhu <[email protected]>2026-09-28 04:51:16 +0100
commitf0224870063d471efd540603ca2b4528b4bf499a (patch)
tree118951faa435a679cb46ac038d7ffa0cfac8b0ed /examples
parent63dad65b5807265dac70dd593ff123ec06595224 (diff)
downloadaup-f0224870063d471efd540603ca2b4528b4bf499a.tar.gz
aup-f0224870063d471efd540603ca2b4528b4bf499a.zip
Give views arguments
view name(argument: type, ...) = ... declares a view that takes u32, number, bytes or text arguments, read by name in the view, in a table's filter and columns and in the folds inside them (compiled to FIELD of an arguments input named name.args that names its view, Pure's kind 6). A host gives them as the request's query: GET /views/balance?aid=42, and a table pages as before with from and count. A query compiled with aup query may take arguments too. An argument's name may not be a state or another declaration, nor the table's row, nor from or count (which page a table). Eight diagnostics and an app of views with arguments (a keyed lookup, a fold, a text, a table filtered by two of them whose column folds with one, a handler's fold reading its message) are checked.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions