auto recomputation fields are now available
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user