Skip to content

Commit

Permalink
Deprecated use of sharding rule proto & service (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs authored Apr 2, 2024
1 parent 7ce9989 commit f8582ea
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 63 deletions.
122 changes: 68 additions & 54 deletions pkg/protos/sharding_rules.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions pkg/protos/sharding_rules_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 15 additions & 9 deletions protos/sharding_rules.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ package spqr;
option go_package = "spqr/proto";

message ShardingRuleEntry {
string column = 2;
string hashFunction = 3;
string column = 2 [deprecated = true];
string hashFunction = 3 [deprecated = true];
}


message ShardingRule {
string id = 1;
string tableName = 2;
repeated ShardingRuleEntry ShardingRuleEntry = 3;
string distributionId = 4;
string id = 1 [deprecated = true];
string tableName = 2 [deprecated = true];
repeated ShardingRuleEntry ShardingRuleEntry = 3 [deprecated = true];
string distributionId = 4 [deprecated = true];
}

message AddShardingRuleRequest {
Expand All @@ -38,7 +38,13 @@ message DropShardingRuleRequest {
message DropShardingRuleReply {}

service ShardingRulesService {
rpc AddShardingRules(AddShardingRuleRequest) returns (AddShardingRuleReply) {}
rpc DropShardingRules(DropShardingRuleRequest) returns (DropShardingRuleReply) {}
rpc ListShardingRules(ListShardingRuleRequest) returns (ListShardingRuleReply) {}
rpc AddShardingRules(AddShardingRuleRequest) returns (AddShardingRuleReply) {
option deprecated = true;
}
rpc DropShardingRules(DropShardingRuleRequest) returns (DropShardingRuleReply) {
option deprecated = true;
}
rpc ListShardingRules(ListShardingRuleRequest) returns (ListShardingRuleReply) {
option deprecated = true;
}
}

0 comments on commit f8582ea

Please sign in to comment.