refering different tables that are not directly FK5
This commit is contained in:
@@ -42,6 +42,9 @@ service TableScript {
|
||||
// - Includes normalized dependency metadata from script_dependencies
|
||||
// - Returns an empty scripts list when the table has no scripts
|
||||
rpc GetTableScripts(GetTableScriptsRequest) returns (GetTableScriptsResponse);
|
||||
|
||||
rpc GetScriptDependencyValues(GetScriptDependencyValuesRequest)
|
||||
returns (GetScriptDependencyValuesResponse);
|
||||
}
|
||||
|
||||
// Request to create or update a script bound to a specific table and column.
|
||||
@@ -140,3 +143,22 @@ message ScriptDependency {
|
||||
// Relationship table used to match the owner row to the related collection.
|
||||
string via_table = 6;
|
||||
}
|
||||
|
||||
message GetScriptDependencyValuesRequest {
|
||||
string profile_name = 1;
|
||||
string table_name = 2;
|
||||
int64 row_id = 3;
|
||||
map<string, string> row_data = 4;
|
||||
}
|
||||
|
||||
message ScriptDependencyValue {
|
||||
string operation = 1;
|
||||
string target_table = 2;
|
||||
string column = 3;
|
||||
string via_table = 4;
|
||||
string value = 5;
|
||||
}
|
||||
|
||||
message GetScriptDependencyValuesResponse {
|
||||
repeated ScriptDependencyValue values = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user