auto recomputation fields are now available

This commit is contained in:
Priec
2026-07-16 00:46:47 +02:00
parent 53c7576872
commit fac1ada024
10 changed files with 23 additions and 9 deletions

View File

@@ -130,6 +130,10 @@ message ColumnDefinition {
// MONEY rounding applied before a value is stored.
MoneyRounding rounding = 4;
// When true, the submitted script result is validated normally and the
// stored value is also refreshed when one of its dependencies later changes.
bool recompute_on_dependency_change = 5;
}
// Response after table creation (success + DDL preview).

View File

@@ -90,9 +90,6 @@ message PostTableScriptRequest {
// Optional. Free-text description stored alongside the script (no functional effect).
string description = 4;
// When true, changing any referenced field recomputes the target column.
// When false, the script only validates direct writes to its own table.
bool recompute_on_dependency_change = 5;
}
// Response after creating or updating a script.

View File

@@ -71,4 +71,8 @@ message TableColumn {
// True if the column is part of the table's PRIMARY KEY.
// Typically true for the "id" column created by the system.
bool is_primary_key = 4;
// True for a user-defined column whose logic should be recomputed whenever
// one of its dependencies changes. False for system and foreign-key columns.
bool recompute_on_dependency_change = 5;
}