server table structure response is now generalized

This commit is contained in:
filipriec
2025-05-25 18:57:13 +02:00
parent bd7c97ca91
commit 685361a11a
7 changed files with 193 additions and 359 deletions

View File

@@ -4,18 +4,22 @@ package multieko2.table_structure;
import "common.proto";
message GetTableStructureRequest {
string profile_name = 1; // e.g., "default"
string table_name = 2; // e.g., "2025_adresar6"
}
message TableStructureResponse {
repeated TableColumn columns = 1;
}
message TableColumn {
string name = 1;
string data_type = 2;
string data_type = 2; // e.g., "TEXT", "BIGINT", "VARCHAR(255)", "TIMESTAMPTZ"
bool is_nullable = 3;
bool is_primary_key = 4;
}
service TableStructureService {
rpc GetAdresarTableStructure (common.Empty) returns (TableStructureResponse);
rpc GetUctovnictvoTableStructure (common.Empty) returns (TableStructureResponse);
rpc GetTableStructure (GetTableStructureRequest) returns (TableStructureResponse);
}