mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
feat: add proto files for grpc-alter (#234)
* feat: add proto files for grpc-alter * fix: format Co-authored-by: liangxingjian <xingjianliang@proton.me>
This commit is contained in:
@@ -18,6 +18,7 @@ message AdminExpr {
|
||||
ExprHeader header = 1;
|
||||
oneof expr {
|
||||
CreateExpr create = 2;
|
||||
AlterExpr alter = 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,3 +40,16 @@ message CreateExpr {
|
||||
bool create_if_not_exists = 8;
|
||||
map<string, string> table_options = 9;
|
||||
}
|
||||
|
||||
message AlterExpr {
|
||||
optional string catalog_name = 1;
|
||||
optional string schema_name = 2;
|
||||
string table_name = 3;
|
||||
oneof kind {
|
||||
AddColumn add_column = 4;
|
||||
}
|
||||
}
|
||||
|
||||
message AddColumn {
|
||||
ColumnDef column_def = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user