Skip to content

Commit

Permalink
support the properties param in the create database api
Browse files Browse the repository at this point in the history
Signed-off-by: SimFG <[email protected]>
  • Loading branch information
SimFG committed Nov 25, 2024
1 parent 1f009df commit 960145c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion milvus/grpc/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export class Database extends BaseClient {
const promise = await promisify(
this.channelPool,
'CreateDatabase',
data,
{
db_name: data.db_name,
properties: parseToKeyValue(data.properties),
},
data.timeout || this.timeout
);
return promise;
Expand Down
4 changes: 3 additions & 1 deletion milvus/types/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export interface databaseReq extends GrpcTimeOut {
}

// request
export interface CreateDatabaseRequest extends databaseReq {}
export interface CreateDatabaseRequest extends databaseReq {
properties?: Properties; // optional, properties
}
export interface DropDatabasesRequest extends databaseReq {}
export interface DescribeDatabaseRequest extends databaseReq {}

Expand Down

0 comments on commit 960145c

Please sign in to comment.