Skip to content

Commit 0f79a83

Browse files
Introduce version extension (#236)
## Release notes: usage and product changes We introduce the "extension" field into the protocol. This introduces a finer notion of "compatibility" and makes the protocol aware of it. A driver-server pair is compatible if they are on the same protocol version, and the server extension version is atleast that of the client.
2 parents 1d2cf7d + ce6ffc5 commit 0f79a83

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

proto/connection.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ message Connection {
1515
message Open {
1616
message Req {
1717
Version version = 1;
18+
ExtensionVersion extension_version = 5;
1819
string driver_lang = 2;
1920
string driver_version = 3;
2021

proto/version.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ enum Version {
1111
UNSPECIFIED = 0;
1212
VERSION = 7;
1313
}
14+
15+
enum ExtensionVersion {
16+
UNSPECIFIED_EXTENSION = 0;
17+
EXTENSION = 1; // Reserving makes little sense here.
18+
}

0 commit comments

Comments
 (0)