This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 9/16/2026.
Store.insert
~import std/store.insertKoru Standard Library: Reactive Stores — the `insert` event.
store.insert.kz · 1 tors
Koru Standard Library: Reactive Stores — the `insert` event.
Joined via `~part insert` in store.kz; merged into the store module at load.
STORE.INSERT — append a row to a plural store (rung two)
std/store:insert(game) { hp: 30, kind: 1 } — bare append
std/store:insert(game) { hp: 50, kind: 1 } | row r |> … — handle form
Rewritten into `__store_insert_<s>(…)` (void) or `__store_inserth_<s>(…)`
(`| row i64`) — the site's own continuations ride along. `__site_line`
carries the site's source position so standing query enters stay honest
about program order (a query only hears inserts BELOW it in source).
// Koru Standard Library: Reactive Stores — the `insert` event.
// Joined via `~part insert` in store.kz; merged into the store module at load.
//
// STORE.INSERT — append a row to a plural store (rung two)
//
// std/store:insert(game) { hp: 30, kind: 1 } — bare append
// std/store:insert(game) { hp: 50, kind: 1 } | row r |> … — handle form
//
// Rewritten into `__store_insert_<s>(…)` (void) or `__store_inserth_<s>(…)`
// (`| row i64`) — the site's own continuations ride along. `__site_line`
// carries the site's source position so standing query enters stay honest
// about program order (a query only hears inserts BELOW it in source).
~[keyword|comptime|transform] pub tor insert {
expr: Expression,
source: Source,
invocation: *const Invocation,
item: std/compiler:*const Item,
program: std/compiler:*const Program,
reporter: std/compiler:*ErrorReporter,
allocator: std.mem.Allocator
} -> SiteResult