21 lines
451 B
Protocol Buffer
21 lines
451 B
Protocol Buffer
// common/proto/table_definition.proto
|
|
syntax = "proto3";
|
|
package multieko2.table_definition;
|
|
|
|
import "common.proto";
|
|
|
|
service TableDefinition {
|
|
rpc PostTableDefinition (PostTableDefinitionRequest) returns (TableDefinitionResponse);
|
|
}
|
|
|
|
message PostTableDefinitionRequest {
|
|
string table_name = 1;
|
|
repeated string columns = 2;
|
|
repeated string indexes = 3;
|
|
}
|
|
|
|
message TableDefinitionResponse {
|
|
bool success = 1;
|
|
string sql = 2;
|
|
}
|