form catalog
This commit is contained in:
@@ -27,6 +27,10 @@ service TableDefinition {
|
||||
// This provides a tree-like overview of table relationships.
|
||||
rpc GetProfileTree(komp_ac.common.Empty) returns (ProfileTreeResponse);
|
||||
|
||||
// Lists the tables visible in one data-entry scope. When profile_name is
|
||||
// absent, only global tables are returned.
|
||||
rpc GetTableCatalog(GetTableCatalogRequest) returns (GetTableCatalogResponse);
|
||||
|
||||
// Lists every column type a table may declare, along with the SQL type it
|
||||
// maps to. Pure data retrieval - no business logic.
|
||||
rpc ListColumnTypes(komp_ac.common.Empty) returns (ListColumnTypesResponse);
|
||||
@@ -260,6 +264,15 @@ message ProfileTreeResponse {
|
||||
repeated Profile profiles = 1;
|
||||
}
|
||||
|
||||
message GetTableCatalogRequest {
|
||||
// Selected profile. Omit this field to request the global-only scope.
|
||||
optional string profile_name = 1;
|
||||
}
|
||||
|
||||
message GetTableCatalogResponse {
|
||||
repeated ProfileTreeResponse.Table tables = 1;
|
||||
}
|
||||
|
||||
// Request to fetch all tables, columns and scripts for a profile.
|
||||
message GetProfileDetailsRequest {
|
||||
// Profile (schema) name to fetch details for.
|
||||
|
||||
Reference in New Issue
Block a user