Skip to content

Instantly share code, notes, and snippets.

@tonyyang-svail
Created February 8, 2019 02:02
Show Gist options
  • Save tonyyang-svail/3e6311b4496283d9ec4bc7ac79daf14e to your computer and use it in GitHub Desktop.
Save tonyyang-svail/3e6311b4496283d9ec4bc7ac79daf14e to your computer and use it in GitHub Desktop.
syntax = "proto3";
import "google/protobuf/any.proto";
package server;
service SQLFlow {
rpc File (Request) returns (Job);
rpc ReadRow(Job) returns (stream Row);
rpc ReadLog(Job) returns (stream Log);
}
message Request {
string sql = 1;
}
message Job {
int32 id = 1;
}
message Log {
string log = 1;
}
// A row of data. Data can be any type
message Row {
repeated google.protobuf.Any data = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment