Skip to content

Commit 36d28e7

Browse files
author
Phani Raj
authored
Merge pull request #73 from planetscale/update-proto
Add support for picking a cell, more tablet types
2 parents 47f2760 + 9656a10 commit 36d28e7

3 files changed

Lines changed: 141 additions & 53 deletions

File tree

proto/psdbconnect.v1alpha1.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,20 @@ option go_package = "github.com/planetscale/airbyte-source/proto/psdbconnect/v1a
99

1010
//enumcheck:exhaustive
1111
enum TabletType {
12+
option allow_alias = true; // so we can have read_only and batch co-exist
13+
14+
// REPLICA replicates from primary. It is used to serve live traffic.
15+
// A REPLICA can be promoted to PRIMARY. A demoted PRIMARY will go to REPLICA.
1216
replica = 0;
17+
// PRIMARY is the primary server for the shard. Only PRIMARY allows DMLs.
1318
primary = 1;
19+
20+
// RDONLY (old name) / BATCH (new name) is used to serve traffic for
21+
// long-running jobs. It is a separate type from REPLICA so
22+
// long-running queries don't affect web-like traffic.
23+
read_only = 2;
24+
batch = 2;
25+
1426
}
1527

1628
message SyncRequest {
@@ -21,6 +33,9 @@ message SyncRequest {
2133
bool include_updates = 5;
2234
bool include_deletes = 6;
2335
repeated string columns = 7;
36+
// if specified, these cells are used to pick source tablets from.
37+
// defaults to the cell of the vtgate serving the VStream API.
38+
repeated string cells = 8;
2439
}
2540

2641
message DeletedRow {

proto/psdbconnect/v1alpha1/psdbconnect.v1alpha1.pb.go

Lines changed: 79 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/psdbconnect/v1alpha1/psdbconnect.v1alpha1_vtproto.pb.go

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)