Skip to content

Commit 6288eff

Browse files
author
Srinath Narayanan
committed
modified documentation
1 parent bac634e commit 6288eff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sdk/cosmos/azure-cosmos/azure/cosmos/cosmos_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ def create_database_if_not_exists( # pylint: disable=redefined-builtin
257257
"""
258258
Create the database if it does not exist already.
259259
260-
If the database already exists, it is returned.
260+
If the database already exists, the existing settings are returned.
261+
Note: it does not check or update the existing database settings or offer throughput
262+
if they differ from what was passed into the method.
261263
262264
:param id: ID (name) of the database to read or create.
263265
:param str session_token: Token for use with Session consistency.

sdk/cosmos/azure-cosmos/azure/cosmos/database.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ def create_container_if_not_exists(
239239
"""
240240
Create the container if it does not exist already.
241241
242-
If the container already exists, it is returned.
242+
If the container already exists, the existing settings are returned.
243+
Note: it does not check or update the existing container settings or offer throughput
244+
if they differ from what was passed into the method.
243245
244246
:param id: ID (name) of container to read or create.
245247
:param partition_key: The partition key to use for the container.

0 commit comments

Comments
 (0)