-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support db_name in APIs Signed-off-by: ryjiang <[email protected]> * fix build Signed-off-by: ryjiang <[email protected]> * add describeDatabase api Signed-off-by: ryjiang <[email protected]> --------- Signed-off-by: ryjiang <[email protected]>
- Loading branch information
1 parent
8889b0d
commit be48e5b
Showing
3 changed files
with
63 additions
and
2 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
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 |
---|---|---|
@@ -1,12 +1,23 @@ | ||
import { GrpcTimeOut, resStatusResponse } from './Common'; | ||
import { GrpcTimeOut, resStatusResponse, KeyValuePair } from './Common'; | ||
|
||
// base | ||
export interface databaseReq extends GrpcTimeOut { | ||
db_name: string; // required, database name | ||
} | ||
|
||
// request | ||
export interface CreateDatabaseRequest extends databaseReq {} | ||
export interface DropDatabasesRequest extends databaseReq {} | ||
export interface DescribeDatabaseRequest extends databaseReq {} | ||
|
||
// response | ||
export interface ListDatabasesRequest extends GrpcTimeOut {} | ||
export interface ListDatabasesResponse extends resStatusResponse { | ||
db_names: string[]; // database names | ||
} | ||
export interface DescribeDatabaseResponse extends resStatusResponse { | ||
db_name: string; // database name | ||
dbID: number; // database id | ||
created_timestamp: number; // created timestamp | ||
properties: KeyValuePair[]; // properties | ||
} |
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