2023-06-19 19:15:08 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package datafortress;
|
|
|
|
|
2023-06-19 19:29:53 -07:00
|
|
|
message SchemaEntry {
|
|
|
|
enum Type {
|
|
|
|
STRING = 0;
|
|
|
|
INT = 1;
|
|
|
|
}
|
|
|
|
Type type = 1;
|
|
|
|
string name = 2;
|
|
|
|
}
|
|
|
|
|
2023-06-19 19:15:08 -07:00
|
|
|
// Indicates a command
|
|
|
|
message Command {
|
|
|
|
enum Type {
|
|
|
|
UNUSED = 0;
|
|
|
|
STATUS = 1;
|
|
|
|
SCHEMA_READ = 2;
|
|
|
|
SCHEMA_WRITE = 3;
|
|
|
|
QUERY = 4;
|
|
|
|
WRITE = 5;
|
|
|
|
}
|
|
|
|
|
2023-12-12 12:40:25 -08:00
|
|
|
// unique identifier for the command supplied by the client.
|
|
|
|
// Any response to the command will reference this ID.
|
|
|
|
string id = 1;
|
|
|
|
Type type = 2;
|
|
|
|
|
|
|
|
optional string table_name = 3;
|
|
|
|
repeated SchemaEntry schema_entry = 4;
|
|
|
|
}
|
2023-06-19 19:15:08 -07:00
|
|
|
|
2023-12-12 12:40:25 -08:00
|
|
|
message Error {
|
|
|
|
int32 code = 1;
|
|
|
|
string message = 2;
|
2023-06-19 19:29:53 -07:00
|
|
|
}
|
2023-06-19 19:15:08 -07:00
|
|
|
|
2023-12-12 12:40:25 -08:00
|
|
|
message CommandResponse {
|
|
|
|
string id = 1;
|
|
|
|
bool success = 2;
|
|
|
|
optional Error error = 3;
|
|
|
|
}
|