table definitions added
This commit is contained in:
20
common/proto/table_definition.proto
Normal file
20
common/proto/table_definition.proto
Normal file
@@ -0,0 +1,20 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user