-
Notifications
You must be signed in to change notification settings - Fork 1
/
pg_pb3.proto
54 lines (43 loc) · 1018 Bytes
/
pg_pb3.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
syntax = "proto3";
package pg_pb3_ld;
option go_package = "github.com/johto/pg_pb3_ld";
enum WireMessageType {
WMSG_BEGIN = 0;
WMSG_COMMIT = 1;
WMSG_INSERT = 2;
WMSG_UPDATE = 3;
WMSG_DELETE = 4;
}
message WireMessageHeader {
repeated WireMessageType types = 1;
repeated int32 offsets = 2;
}
message BeginTransaction {
}
message CommitTransaction {
}
message InsertDescription {
TableDescription table = 1;
FieldSetDescription new_values = 3;
}
message UpdateDescription {
TableDescription table = 1;
FieldSetDescription key_fields = 3;
FieldSetDescription new_values = 5;
}
message DeleteDescription {
TableDescription table = 1;
FieldSetDescription key_fields = 3;
}
message TableDescription {
string schema_name = 1;
string table_name = 2;
uint32 table_oid = 3;
}
message FieldSetDescription {
repeated string names = 2;
repeated bytes values = 3;
repeated uint32 type_oids = 4;
bytes nulls = 5;
bytes formats = 6;
}