@ejfdelgado/ejflab-common 1.12.1 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ class CommandMilvus extends CommandBasic {
|
|
|
20
20
|
|
|
21
21
|
const milvusSrv = this.context.getSuperContext().getMilvusClient();
|
|
22
22
|
const { client } = milvusSrv.connect();
|
|
23
|
-
|
|
23
|
+
let response = null;
|
|
24
24
|
try {
|
|
25
25
|
if (action == "database.create") {
|
|
26
26
|
response = await this.dataBaseCreate(milvusSrv, client, dataBaseName);
|
|
@@ -34,6 +34,12 @@ class CommandMilvus extends CommandBasic {
|
|
|
34
34
|
} else {
|
|
35
35
|
throw new Error(`No MILVUS configuration in ${collectionConfig}`);
|
|
36
36
|
}
|
|
37
|
+
} else if (action == "collection.destroy") {
|
|
38
|
+
const collectionName = this.args[2];
|
|
39
|
+
response = await milvusSrv.dropCollectionOfDatabase(client, dataBaseName, collectionName);
|
|
40
|
+
} else if (action == "collection.describe") {
|
|
41
|
+
const collectionName = this.args[2];
|
|
42
|
+
response = await milvusSrv.describeCollectionOfDatabase(client, dataBaseName, collectionName);
|
|
37
43
|
} else if (action == "introspect") {
|
|
38
44
|
response = await milvusSrv.introspect(client);
|
|
39
45
|
} else if (action == "database.destroy") {
|