Skip to content

Commit

Permalink
feat: add drop database expr
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Mar 19, 2024
1 parent 96f1f04 commit e718ebb
Show file tree
Hide file tree
Showing 10 changed files with 3,479 additions and 365 deletions.
394 changes: 353 additions & 41 deletions c++/greptime/v1/ddl.pb.cc

Large diffs are not rendered by default.

326 changes: 318 additions & 8 deletions c++/greptime/v1/ddl.pb.h

Large diffs are not rendered by default.

344 changes: 316 additions & 28 deletions c++/greptime/v1/meta/ddl.pb.cc

Large diffs are not rendered by default.

352 changes: 350 additions & 2 deletions c++/greptime/v1/meta/ddl.pb.h

Large diffs are not rendered by default.

338 changes: 211 additions & 127 deletions go/greptime/v1/ddl.pb.go

Large diffs are not rendered by default.

299 changes: 194 additions & 105 deletions go/greptime/v1/meta/ddl.pb.go

Large diffs are not rendered by default.

916 changes: 892 additions & 24 deletions java/src/main/java/greptime/v1/meta/Ddl.java

Large diffs are not rendered by default.

864 changes: 834 additions & 30 deletions java/src/main/java/io/greptime/v1/Ddl.java

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions proto/greptime/v1/ddl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ message TruncateTableExpr {
TableId table_id = 4;
}

message DropDatabaseExpr {
string catalog_name = 1;
string schema_name = 2;
bool drop_if_exists = 3;
}

message AddColumns { repeated AddColumn add_columns = 1; }

message DropColumns { repeated DropColumn drop_columns = 1; }
Expand Down
5 changes: 5 additions & 0 deletions proto/greptime/v1/meta/ddl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ message TruncateTableTask {
TruncateTableExpr truncate_table = 1;
}

message DropDatabaseTask {
DropDatabaseExpr drop_database = 1;
}

message DdlTaskRequest {
RequestHeader header = 1;

Expand All @@ -62,6 +66,7 @@ message DdlTaskRequest {
CreateTableTasks create_table_tasks = 6;
DropTableTasks drop_table_tasks = 7;
AlterTableTasks alter_table_tasks = 8;
DropDatabaseTask drop_database_task = 9;
}
}

Expand Down

0 comments on commit e718ebb

Please sign in to comment.