Skip to content

Commit

Permalink
Mark database argument for get_by_id and its async counterpart as ign…
Browse files Browse the repository at this point in the history
…ored

The Client class should be used to set the database instead.
  • Loading branch information
rwhogg committed Aug 4, 2023
1 parent 978aa4a commit 85ad349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/ndb/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5764,8 +5764,7 @@ def _get_by_id(
``global_cache_timeout``.
max_memcache_items (int): No longer supported.
force_writes (bool): No longer supported.
database (Optional[str]): Database for the entity to load. If not
passed, uses the client's value.
database (Optional[str]): Ignored. Please set the database on the Client instead.
Returns:
Optional[Model]: The retrieved entity, if one is found.
Expand Down Expand Up @@ -5851,6 +5850,7 @@ def _get_by_id_async(
``global_cache_timeout``.
max_memcache_items (int): No longer supported.
force_writes (bool): No longer supported.
database (Optional[str]): Ignored. Please set the database on the Client instead.
Returns:
tasklets.Future: Optional[Model]: The retrieved entity, if one is
Expand Down

0 comments on commit 85ad349

Please sign in to comment.