mirror of
https://github.com/rqlite/rqlite.git
synced 2026-01-25 04:16:26 +00:00
Record commit timestamp for CDC events
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.6
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc v3.6.1
|
||||
// source: command.proto
|
||||
|
||||
@@ -1835,11 +1835,12 @@ func (x *CDCEvent) GetNewRow() *CDCRow {
|
||||
}
|
||||
|
||||
type CDCIndexedEventGroup struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
|
||||
Events []*CDCEvent `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
|
||||
CommitTimestamp int64 `protobuf:"varint,2,opt,name=commit_timestamp,json=commitTimestamp,proto3" json:"commit_timestamp,omitempty"`
|
||||
Events []*CDCEvent `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CDCIndexedEventGroup) Reset() {
|
||||
@@ -1879,6 +1880,13 @@ func (x *CDCIndexedEventGroup) GetIndex() uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *CDCIndexedEventGroup) GetCommitTimestamp() int64 {
|
||||
if x != nil {
|
||||
return x.CommitTimestamp
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *CDCIndexedEventGroup) GetEvents() []*CDCEvent {
|
||||
if x != nil {
|
||||
return x.Events
|
||||
@@ -2187,10 +2195,11 @@ const file_command_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x06UPDATE\x10\x02\x12\n" +
|
||||
"\n" +
|
||||
"\x06DELETE\x10\x03\"W\n" +
|
||||
"\x06DELETE\x10\x03\"\x82\x01\n" +
|
||||
"\x14CDCIndexedEventGroup\x12\x14\n" +
|
||||
"\x05index\x18\x01 \x01(\x04R\x05index\x12)\n" +
|
||||
"\x06events\x18\x02 \x03(\v2\x11.command.CDCEventR\x06events\"T\n" +
|
||||
"\x10commit_timestamp\x18\x02 \x01(\x03R\x0fcommitTimestamp\x12)\n" +
|
||||
"\x06events\x18\x03 \x03(\v2\x11.command.CDCEventR\x06events\"T\n" +
|
||||
"\x19CDCIndexedEventGroupBatch\x127\n" +
|
||||
"\apayload\x18\x01 \x03(\v2\x1d.command.CDCIndexedEventGroupR\apayload\"\xc6\x01\n" +
|
||||
"\x0fUpdateHookEvent\x12\x14\n" +
|
||||
|
||||
@@ -182,7 +182,8 @@ message CDCEvent {
|
||||
|
||||
message CDCIndexedEventGroup {
|
||||
uint64 index = 1;
|
||||
repeated CDCEvent events = 2;
|
||||
int64 commit_timestamp = 2;
|
||||
repeated CDCEvent events = 3;
|
||||
}
|
||||
|
||||
message CDCIndexedEventGroupBatch {
|
||||
|
||||
Reference in New Issue
Block a user