LuxelEspañol

Luxel v0.1 · Reference · part 5 of 12

API reference (5)

ExportKindDescription
defineEventfunction—
defineLoadfunction—
Definitiontype—
EventContextinterface—
EventDefinitioninterface—
EventOptionsinterface—
eventRefconst—
EventRefinterfaceAn event of view V, as the generated events object exposes it. */
EventSpecinterface—
EventStoreinterfaceThe app's persistence of events (Sprint 7 contract): read runs work on a connection, without a transaction: a load reads its state and version in ONE statement (ctx.snapshot), so they come from one snapshot. { snapshot: true } asks for a REPEATABLE READ transaction instead, for a load that cannot be one statement; write in ONE transaction: claims (user, eventId) with requestHash (a claimed key returns its stored result, or mismatch for another request); runs work (which locks, compares versions, and runs the handler); stores the result with the key; commits. Claimed keys may expire (the store decides when; a replay after that runs again). /
FieldTypetypeAn item field's type: a text kind, a number, a row input's value, or the states of a status. */
FieldValuetypeWhat an item field takes. */
FillValuestypeData only the page shows and nothing updates (Sprint 7): the options every row select lists. */
Formattersinterface—
HandlerContexttypeThe handler's context: a ReadContext for a read, an EventContext for a write. */
InputstypeInputs as a handler gets them: strings, and (Sprint 7) rows as keyed objects. */
intlFormattersfunctionFormatters for a language and currency (Intl, on the server). Money stays integer cents. */
keyedDeltafunctionThe operations that turn the list before (keys, in order, as the page showed them at seen) into now (Sprint 9, ADR-043). Applied in order by the browser's collection module, they give exactly now: removals first, then each item of now in order is placed after its predecessor (inserted if new, moved if it was elsewhere, replaced if its version is above seen). /
KeyedOptype—
Leaftype—
LoadContextinterface—
LoadDefinitioninterface—
LoadValuestype—
LockedtypeWhat a lock reads: the current version, or (for "not-newer") the current version and max, the highest version ever issued (e.g. the shared sequence's last value): a version above it was never seen by anyone and is a conflict. /
LockFntypeThe current version of what an event changes, read under lock in the event's transaction. */
MessageRefinterfaceA compiled message of view V: its key and arguments (sent as [index, ...args] on the wire). */
MoneyLeafinterface—
Edit this page on GitHub

This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app.

Measured when the site is built: the runtime files this page loads, compressed as they are sent.

Made by IntiOps. Luxel 0.1.0-beta.1 is a beta: no external security review yet.