talkiq / gcloud-aio

(Asyncio OR Threadsafe) Google Cloud Client Library for Python
https://talkiq.github.io/gcloud-aio
275 stars 91 forks source link

Allow passing `databaseId` to Datastore methods #780

Open farbodsz opened 3 months ago

farbodsz commented 3 months ago

The Google Datastore REST API allows passing the datastoreId to its endpoints, in case the operation is on a database that is not '(default)'. For example - https://cloud.google.com/datastore/docs/reference/data/rest/v1/projects/runQuery

It would be great to have this as an optional parameter in the corresponding async client endpoints, for example this one.

Depending on how long this might take or when it might be prioritized, I'm happy to dedicate a bit of time to make the PR.