Skip to content

Commit

Permalink
enhance: add use_database (#2491)
Browse files Browse the repository at this point in the history
Signed-off-by: zhenshan.cao <[email protected]>
  • Loading branch information
czs007 authored Dec 20, 2024
1 parent b65d23e commit 506ba36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pymilvus/milvus_client/milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 506ba36

Please sign in to comment.