Search records now carry each formula's result, worked out like the
exports do (relations and rollups included); yes/no results are left
out like checkboxes. The search index version goes to 5, so existing
indexes are rebuilt once and older records get their formula text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A formula column keeps an expression and works it out for each record
when the database is read, after relations and rollups, like rollups;
nothing is stored per record. The language is small and hand-parsed:
prop("Name"), numbers, text, yes/no and days, arithmetic, comparisons,
and/or/not, if(), rounding, min/max, text functions and date arithmetic
(today, dateAdd, dateBetween, year/month/day). Errors, loops between
formulas included, stay in their cells with the reason as a tooltip.
The column's editor shows the first record's result or the error as
you type and inserts properties by name. Formulas sort, filter and chart
like numbers when they are numbers. The server evaluates the same
language for exports (convert/formula.go), with the same test cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>