strings not used internally10
This commit is contained in:
@@ -167,16 +167,44 @@ message StoredTableScript {
|
||||
repeated ScriptDependency dependencies = 6;
|
||||
}
|
||||
|
||||
enum ScriptDependencyKind {
|
||||
SCRIPT_DEPENDENCY_KIND_UNSPECIFIED = 0;
|
||||
SCRIPT_DEPENDENCY_KIND_COLUMN_ACCESS = 1;
|
||||
SCRIPT_DEPENDENCY_KIND_RELATED_AGGREGATE = 2;
|
||||
SCRIPT_DEPENDENCY_KIND_LEDGER_EFFECT = 3;
|
||||
}
|
||||
|
||||
enum AggregateOperation {
|
||||
AGGREGATE_OPERATION_UNSPECIFIED = 0;
|
||||
AGGREGATE_OPERATION_SUM = 1;
|
||||
AGGREGATE_OPERATION_MIN = 2;
|
||||
AGGREGATE_OPERATION_MAX = 3;
|
||||
AGGREGATE_OPERATION_COUNT = 4;
|
||||
AGGREGATE_OPERATION_COUNT_DISTINCT = 5;
|
||||
AGGREGATE_OPERATION_ANY = 6;
|
||||
AGGREGATE_OPERATION_ALL = 7;
|
||||
AGGREGATE_OPERATION_COUNT_ROWS = 8;
|
||||
AGGREGATE_OPERATION_EXISTS = 9;
|
||||
}
|
||||
|
||||
enum LedgerEffectOperation {
|
||||
LEDGER_EFFECT_OPERATION_UNSPECIFIED = 0;
|
||||
LEDGER_EFFECT_OPERATION_ADD = 1;
|
||||
LEDGER_EFFECT_OPERATION_SUBTRACT = 2;
|
||||
LEDGER_EFFECT_OPERATION_BOOLEAN = 3;
|
||||
}
|
||||
|
||||
message ScriptDependency {
|
||||
// Logical table name referenced by the script.
|
||||
string target_table = 1;
|
||||
// Normalized dependency kind, such as column_access or related_aggregate.
|
||||
string dependency_type = 2;
|
||||
ScriptDependencyKind dependency_type = 2;
|
||||
// Logical column name. Empty for aggregates that operate on rows only.
|
||||
string column = 3;
|
||||
// Aggregate operation name, such as sum, count_rows, or exists; empty for
|
||||
// column_access dependencies.
|
||||
string operation = 4;
|
||||
// Absent for column access; otherwise matches the dependency kind.
|
||||
oneof operation {
|
||||
AggregateOperation aggregate_operation = 4;
|
||||
LedgerEffectOperation ledger_operation = 8;
|
||||
}
|
||||
// Relationship table used to match the owner row to the related collection.
|
||||
string via_table = 5;
|
||||
// Column of the current row holding the referenced row's id: the link this
|
||||
@@ -224,9 +252,7 @@ message HydratedColumnValue {
|
||||
|
||||
// One declared related-collection aggregate input for the client Steel context.
|
||||
message HydratedAggregateValue {
|
||||
// Normalized aggregate operation: sum, min, max, count, count_distinct,
|
||||
// any, all, count_rows, or exists.
|
||||
string operation = 1;
|
||||
AggregateOperation operation = 1;
|
||||
// Logical table whose related rows were aggregated.
|
||||
string target_table = 2;
|
||||
// Logical aggregated column; empty for count_rows and exists.
|
||||
|
||||
Reference in New Issue
Block a user