Skip to content

Commit e9f5ed7

Browse files
kv.tx.ReadSequence support (#251)
1 parent 19bef81 commit e9f5ed7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

remote/kv.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ service KV {
5454
rpc Range(RangeReq) returns (Pairs);
5555
// rpc Stream(RangeReq) returns (stream Pairs);
5656

57+
rpc Sequence(SequenceReq) returns (SequenceReply);
5758

5859
//Temporal methods
5960
rpc GetLatest(GetLatestReq) returns (GetLatestReply); // can return latest value or as of given timestamp
@@ -182,6 +183,19 @@ message RangeReq {
182183
}
183184

184185

186+
// `kv.Sequence` method
187+
message SequenceReq {
188+
uint64 tx_id = 1; // returned by .Tx()
189+
190+
// query params
191+
string table = 2;
192+
}
193+
194+
message SequenceReply {
195+
uint64 value = 1;
196+
}
197+
198+
185199
//Temporal methods
186200
message GetLatestReq {
187201
uint64 tx_id = 1; // returned by .Tx()

0 commit comments

Comments
 (0)