Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Reference
Ratatosk CLI
Roadmap
RFC 0001: make:resource
RFC 0002: live queries
RFC 0003: MCP server
RFC 0004: MCP resource templates
RFC 0005: a Laravel backend
RFC 0006: Laravel broadcasting
RFC 0007: offline and sync
RFC 0008: Laravel notifications
RFC 0009: Files
RFC 0010: Laravel abilities
RFC 0011: an assistant in the app
RFC 0012: @elyra/ui
RFC 0013: the assistant sees the window
RFC 0014: Elyra Inspector
RFC 0015: presence
RFC 0016: capabilities per window
RFC 0017: record invalidation
RFC 0018: the assistant's answer, streamed
RFC 0019: a window from the tray
RFC 0020: an app that stays in the tray
RFC 0021: a server chosen at sign-in
RFC 0022: signed in to more than one server
RFC 0023: private channels a window listens to
RFC 0024: updates from the backend
RFC 0025: commands and configuration
RFC 0026: the running app, for coding agents
RFC 0027: the assistant's code mode
RFC 0028: the tray's icon, and the app's
RFC 0029: installers
RFC 0030: the app's identity on Windows
RFC 0031: a token per workspace
RFC 0032: the microphone
RFC 0033: diagnostics the user can send
RFC 0034: one screen in several states at once
RFC 0035: point at it, and hand it to the agent
RFC 0036: rata check, the app checked as a whole
RFC 0037: Theme Studio
RFC 0038: edit it in its own app
RFC 0039: a write shown at once in every window
RFC 0040: the two halves agree
RFC 0041: Quick Look
RFC 0042: follow a colleague
RFC 0043: every write seen
RFC 0044: composite keys
RFC 0045: bigint all the way
RFC 0046: pivot columns
RFC 0047: relations on any key
RFC 0048: more providers
RFC 0049: OpenAI web search
RFC 0050: integer-keyed arguments
RFC 0051: citations
RFC 0052: open documents
RFC 0053: exit hooks
RFC 0054: the gui feature
RFC 0055: menus that change
RFC 0056: the framework's own words
RFC 0057: rata upgrade
RFC 0058: @elyra/charts
RFC 0059: all of WireCharts
RFC 0060: exporting a chart
RFC 0061: zoom
RFC 0062: printing
RFC 0063: linked charts
RFC 0064: report pages
RFC 0065: marks
RFC 0066: taking a table out
RFC 0067: totals
RFC 0068: columns the user picks
RFC 0069: filters
RFC 0070: saved views
RFC 0071: lists over Laravel
RFC 0072: targets
RFC 0073: every row out
RFC 0074: grouped rows
RFC 0075: pinned columns
RFC 0076: views on the server
RFC 0077: every match selected
RFC 0078: editing in the table
RFC 0079: many cells at once
RFC 0080: a value for the selected rows
RFC 0081: a new row in the table
RFC 0082: a related record in a cell
RFC 0083: a filter by a related record
RFC 0084: one write for many rows
RFC 0085: the keys shown
RFC 0086: many rows in Laravel
RFC 0087: many rows deleted
RFC 0088: the trash
Release notes
Changelog
Elyra
RFC 0084 — One write for many rows: a column set for thousands in a request

RFC 0084 — One write for many rows: a column set for thousands in a request

Status: implemented (2026-11-30) · Target: 0.66.0 · builds on RFC 0077, RFC 0079 and RFC 0080 · see Decisions

Summary

RFC 0080's Set gives every selected row a column's value, a row at a time, four at once. That's right for the hundreds a selection usually is, and RFC 0080 left the rest for later: "It can come when an app has thousands to set." With every match selected (RFC 0077), thousands is one click away. Over a Laravel backend, 8,000 updates at four at a time are minutes of requests, each validating the whole record.

This RFC lets a table set one column for many rows in one request, when the app has a command for it:

<Table
  page={list}
  bind:query
  select
  {columns}
  oneditrow={(row, values) => api.invoices_update(row.id, { ...inputOf(row), ...values })}
  onsetmany={(ids, values) => api.invoices_update_many(ids, values)}
/>
  • onsetmany(ids, values): the keys and the one column's value. It resolves to what failed, if anything: { failed: { [id]: message } }.
  • Used by Set (RFC 0080) and ⌘Enter on a selection, in chunks of 500 keys, with RFC 0079's progress and Cancel between chunks. Paste, fill and edits stay a row at a time: their values differ by row.
  • One step to undo, as today: the undo is a set per old value, so it goes through onsetmany too.
  • make:resource writes {p}_update_many(ids, input) with a {Model}Patch (every field optional, only the ones given validated and written), and the Laravel route and controller method as a hint.

Motivation

  • Every match makes thousands common. RFC 0077 made "the 8,000 overdue invoices" one click; RFC 0080 made "mark them reminded" one more. The write is what's left slow.
  • A row at a time validates the whole record. An update that takes the whole input checks every field of every row, when one changed. A patch checks the one.
  • The server can do it in one statement. UPDATE … WHERE id IN (…), or Eloquent's whereKey($ids)->update(), in one transaction, with the abilities checked once per row as the app wants.

Current state (0.67)

  • Set and ⌘Enter on a selection (RFC 0080) write through RFC 0079's write of many: grouped by row, oneditrow (or onedit) a row at a time, four rows at once, progress and Cancel past 20, failures per row, one undo step.
  • make:resource writes {p}_update(id, input) taking the whole {Model}Input, validated with validate(&ctx, &db); over a backend, PUT /api/{p}/{id}.
  • Nothing writes many rows in one call.

Design

onsetmany(ids, values)

onsetmany?: (ids: Key[], values: Record<string, unknown>) =>
  Promise<{ failed?: Record<string, string> } | void>
  • When: a Set (or ⌘Enter on a selection) whose rows are more than one, when onsetmany is given. Everything else is as RFC 0079 has it.
  • Chunks: 500 keys a call, one call at a time, with the progress ("Saving rows… 1,500 of 8,000") and Cancel between calls.
  • Shown at once: the rows on the page show the new value with the pending dot while their chunk is written, as today.
  • What failed: a key in failed is taken back and marked, with its message, as a failed row is today. A call that throws fails its whole chunk: a ValidationError for the column is the message of each row in it; anything else, a toast, and the chunks after it aren't sent.
  • Undo: the step's cells are grouped by their value before; each group is one onsetmany (in chunks). Rows changed since are left, as RFC 0080 has it.

make:resource

  • {Model}Patch: every editable field, Option<…> (and an optional one Option<Option<…>>, so null is "empty it" and absent is "leave it"), #[serde(default)], validated only for the fields given.
  • {p}_update_many(ctx, ids: Vec<key>, patch: {Model}Patch) -> Result<UpdatedMany>: with the update ability. It checks each row's ability as _update does, writes the given columns for the rows that pass in one transaction, and answers { updated: n, failed: { id: message } }. A unique field in a patch for more than one row is a validation error: it can't be unique.
  • Over a backend: PATCH /api/{p} with { ids, values }, and the hint for Laravel: Route::patch('{p}', [Controller::class, 'updateMany']) and a method that validates the given fields with the update request's rules ($request->safe()->only(...)), checks update per model, and updates in one transaction.
  • The list with --inline gets onsetmany through it.

Words

savingMany(done, total) for the progress past 999 rows ("Saving rows… 1,500 of 8,000", with the locale's grouping); no other new words.

Implementation plan

  1. ui: onsetmany in Set and ⌘Enter on a selection: chunks, the progress, Cancel, failed marked, a throw per chunk, and the undo grouped by old value.
  2. ratatosk: {Model}Patch, {p}_update_many, UpdatedMany, the backend request, the Laravel hint, onsetmany in the list, and their tests and smoke.
  3. framework: UpdatedMany in elyra::db (or the prelude), if more than the generated code needs it; else generated.
  4. Tests: a set over onsetmany in chunks, progress and Cancel, a failed key, a throw with a ValidationError and without, undo grouped by value, a paste and an edit still a row at a time; the generated command's ability per row, a patch with one field, null and absent, a unique field refused, one transaction.
  5. Docs: table.md ("A value for the selected rows"), resources.md, the Laravel guide, the skills, CHANGELOG.

Open questions

  1. Only Set, or paste and fill too? Recommendation: only Set (and ⌘Enter on a selection). One value for many rows is what one statement does; a paste's values differ by row, and is the hundreds a page holds.
  2. The ability per row, or once? Recommendation: per row, as _update does. An ability that depends on the record (the user's own invoices) is the common one, and once would write rows the user may not.
  3. Chunks of 500? Recommendation: yes, one at a time. Small enough for a request's size and a transaction's time, large enough that 8,000 rows are 16 calls, and Cancel has somewhere to stop.
  4. make:resource writes it by default? Recommendation: yes, with --inline: the list that sets columns is the one that edits them. Without it, nothing changes.

Decisions

Accepted 2026-11-30, with the open questions' recommendations:

  1. Only Set (and ⌘Enter on a selection) goes through onsetmany; a paste and a fill stay a row at a time.
  2. The ability is checked per row, as _update does.
  3. Chunks of 500 keys, one call at a time.
  4. make:resource writes it with --inline.

As built

As designed, with these differences:

  • make:resource writes the command for every resource, not only with --inline: it's a command like the others, gated by the update ability. With --inline, the list sets through it (onsetmany).
  • The ability is the update ability, checked once. A generated command's ability is the user's, not the row's (as _update's is); over a backend, the Laravel method checks each model's policy.
  • Each row is validated as its whole update, the record with the patch over it, with the update's rules; the rows that pass are written in one UPDATE … WHERE id IN (…), which is one statement, not a transaction around more.
  • A patch sets the plain fields: text, numbers and flags. A date kept as another type, JSON, a file and a parent's key aren't in it.
  • A unique field for more than one row is an error, not a field's validation message: the table says it in a toast.
  • No savingMany word: the progress is the write of many's ("Saving rows… 500 of 8000").
  • Over a backend, the values are the fields given, sent by their columns; one not given isn't sent, an optional one given as null is.

Not in this RFC

  • A paste or a fill in one request.
  • Deleting many rows in one request (a bulk action is the app's).
  • A set computed from each row (price × 1.1).

Alternatives considered

  • More rows at once (16 instead of 4). The server still validates and writes each record on its own, and a backend has a rate limit.
  • oneditmany(changes) for every write. RFC 0079 chose a write per row for its progress and failures; a set is the case where one value makes one statement possible.
  • A server-side job. Right for millions; for thousands, a request is simpler, and the user waits for the answer anyway.