Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Xiangyu Wang <[email protected]>
  • Loading branch information
Xiangyu Wang committed Dec 1, 2021
1 parent 1d72641 commit a6795cb
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion pymilvus/v2/milvus_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,36 @@

class IServer(metaclass=ABCMeta):
"""
Abstraction for the function of milvus server, to makes the unit tests not depend on a milvus server.
The interface of milvus server.
Methods
-------
create_collection(collection_name, fields, shards_num) -> common_types.Status
Create a collection in Milvus
drop_collection(collection_name) -> common_types.Status
Drop a collection in Milvus
has_collection(collection_name) -> milvus_types.BoolResponse
Check if a collection exists in Milvus
describe_collection(collection_name) -> milvus_types.DescribeCollectionResponse
Get the schema of a collection in Milvus
list_collections() -> milvus_types.ShowCollectionsResponse
List all collections in Milvus
create_partition(collection_name, partition_name) -> common_types.Status
Create a partition in specified collection of Milvus
drop_partition(collection_name, partition_name) -> common_types.Status
Drop a partition in specified collection of Milvus
has_partition(collection_name, partition_name) -> milvus_types.BoolResponse
Check if a partition exists in specified collection of Milvus
list_partitions(collection_name) -> milvus_types.ShowPartitionsResponse
List all partitions in specified collection of Milvus
"""

def __init__(self):
Expand Down

0 comments on commit a6795cb

Please sign in to comment.