-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reorganized everything and yanks a bunch from the previous psdb.v1beta1 branch. Also swaps to buf CLI instead of protoc
- Loading branch information
1 parent
77bbe10
commit 06f7cdd
Showing
17 changed files
with
1,603 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "thirdparty/vitess"] | ||
path = thirdparty/vitess | ||
url = https://github.com/planetscale/vitess-types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: v1 | ||
plugins: | ||
- name: go | ||
path: bin/protoc-gen-go | ||
out: types | ||
opt: | ||
- paths=source_relative | ||
- name: go-vtproto | ||
path: bin/protoc-gen-go-vtproto | ||
out: types | ||
opt: | ||
- paths=source_relative | ||
- features=marshal+unmarshal+size | ||
- name: connect-go | ||
path: bin/protoc-gen-connect-go | ||
out: types | ||
opt: | ||
- paths=source_relative |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: v1 | ||
directories: | ||
- proto-src | ||
- thirdparty/vitess/src/vitess/v15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: v1 | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- ENUM_VALUE_UPPER_SNAKE_CASE | ||
- ENUM_VALUE_PREFIX | ||
- ENUM_ZERO_VALUE_SUFFIX | ||
- SERVICE_SUFFIX | ||
- RPC_REQUEST_RESPONSE_UNIQUE | ||
- RPC_REQUEST_STANDARD_NAME | ||
- RPC_RESPONSE_STANDARD_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
syntax = "proto3"; | ||
|
||
package psdbconnect.v1; | ||
|
||
import "query/query.proto"; | ||
import "vtrpc/vtrpc.proto"; | ||
|
||
option go_package = "github.com/planetscale/psdb/types/psdbconnect/v1;psdbconnectv1"; | ||
|
||
//enumcheck:exhaustive | ||
enum TabletType { | ||
replica = 0; | ||
primary = 1; | ||
} | ||
|
||
message SyncRequest { | ||
string table_name = 1; | ||
TableCursor cursor = 2; | ||
TabletType tablet_type = 3; | ||
} | ||
|
||
message SyncResponse { | ||
repeated query.QueryResult result = 1; | ||
TableCursor cursor = 2; | ||
vtrpc.RPCError error = 3; | ||
} | ||
|
||
message TableCursor { | ||
string shard = 1; | ||
string keyspace = 2; | ||
string position = 3; | ||
query.QueryResult last_known_pk = 4; | ||
} | ||
|
||
service Connect { | ||
rpc Sync(SyncRequest) returns (stream SyncResponse) {} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.