db: added drop table endpoint (#271)

* db: added drop table endpoint

* F

* Update db.proto

Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
Janos Dobronszki
2021-11-16 13:34:56 +00:00
committed by GitHub
parent 93e92b808c
commit cc7d1911d5
5 changed files with 241 additions and 80 deletions

View File

@@ -14,6 +14,7 @@ service Db {
rpc Count(CountRequest) returns (CountResponse) {}
rpc RenameTable(RenameTableRequest) returns (RenameTableResponse) {}
rpc ListTables(ListTablesRequest) returns (ListTablesResponse) {}
rpc DropTable(DropTableRequest) returns (DropTableResponse) {}
}
@@ -83,13 +84,10 @@ message DeleteResponse {
// Truncate the records in a table
message TruncateRequest {
// Optional table name. Defaults to 'default'
string table = 1;
}
message TruncateResponse {
// The table truncated
string table = 1;
}
// Count records in a table
@@ -124,3 +122,12 @@ message ListTablesResponse {
// list of tables
repeated string tables = 1;
}
// Drop a table in the DB
message DropTableRequest {
string table = 1;
}
message DropTableResponse {
}