diff --git a/milvus/grpc/Database.ts b/milvus/grpc/Database.ts index 11a23557..f9faea22 100644 --- a/milvus/grpc/Database.ts +++ b/milvus/grpc/Database.ts @@ -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; diff --git a/milvus/types/Database.ts b/milvus/types/Database.ts index 87753eb9..87cd333b 100644 --- a/milvus/types/Database.ts +++ b/milvus/types/Database.ts @@ -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 {}