feat: add GRPC unary call service to our GreptimeDB (#15)

* feat: add GRPC unary call service to our GreptimeDB

* feat: add GRPC unary call service to our GreptimeDB

* feat: add GRPC unary call service to our GreptimeDB
This commit is contained in:
LFC
2023-03-17 16:29:30 +08:00
committed by GitHub
parent 3a71515056
commit 0a7b790ed4
5 changed files with 7447 additions and 891 deletions
+13
View File
@@ -9,6 +9,10 @@ option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
import "greptime/v1/ddl.proto";
import "greptime/v1/column.proto";
service GreptimeDatabase {
rpc Handle(GreptimeRequest) returns (GreptimeResponse);
}
message RequestHeader {
// The `catalog` that is selected to be used in this request.
string catalog = 1;
@@ -43,6 +47,15 @@ message GreptimeRequest {
}
}
message ResponseHeader {}
message GreptimeResponse {
ResponseHeader header = 1;
oneof response {
AffectedRows affected_rows = 2;
}
}
message QueryRequest {
oneof query {
string sql = 1;