Skip to content

Commit

Permalink
[WIP] Realtime write api (#553)
Browse files Browse the repository at this point in the history
* add realtime_write proto
  • Loading branch information
tianliplus committed Jul 16, 2021
1 parent d2ab259 commit 26436e9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion proto/write_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,25 @@ message GetClientIdResponse {

message BatchWriteRequest {
string client_id = 1;
repeated DataRecordPb data_records = 2;
repeated WriteRequestPb write_requests = 2;
}

message BatchWriteResponse {
int64 snapshot_id = 1;
}

enum WriteTypePb {
UNKNOWN = 0;
INSERT = 1;
UPDATE = 2;
DELETE = 3;
}

message WriteRequestPb {
WriteTypePb write_type = 1;
DataRecordPb data_record = 2;
}

message DataRecordPb {
oneof record_key {
VertexRecordKeyPb vertex_record_key = 1;
Expand Down

0 comments on commit 26436e9

Please sign in to comment.