form catalog

This commit is contained in:
Priec
2026-08-12 16:19:41 +02:00
parent 78e3f1ae08
commit bd76efeaac
5 changed files with 112 additions and 2 deletions

View File

@@ -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.