diff --git a/pymilvus/milvus_client/milvus_client.py b/pymilvus/milvus_client/milvus_client.py index 85e4cfe86..e1cf7d642 100644 --- a/pymilvus/milvus_client/milvus_client.py +++ b/pymilvus/milvus_client/milvus_client.py @@ -1287,10 +1287,15 @@ def list_aliases( conn = self._get_connection() return conn.list_aliases(collection_name, timeout=timeout, **kwargs) + # deprecated same to use_database def using_database(self, db_name: str, **kwargs): conn = self._get_connection() conn.reset_db_name(db_name) + def use_database(self, db_name: str, **kwargs): + conn = self._get_connection() + conn.reset_db_name(db_name) + def create_database(self, db_name: str, properties: Optional[dict] = None, **kwargs): conn = self._get_connection() conn.create_database(db_name, properties, **kwargs)