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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user