GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Datastore Query should work when no Client is passed · Issue #2465 · googleapis/google-cloud-python Closed Labels api: datastoreIssues related to the Datastore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design. DescriptionWe are trying to use gcloud-python Datastore in Apache Beam python SDK to provide a Datastore connector. For our use case, the user will just provide a 'com.google.datastore.query.Query' and the connector will take care of reading data from Datastore. We do not want the user to deal with 'datastore.Client' directly. The way we plan to implement is something like this, User Pseudo Code project = 'myproject' namespace = 'mynamespace' query = Query(client=None, project, namespace ) query.add_filter(...) DatastoreConnector.read(query, project, namespace) SDK Connector Pseudo Code def DatastoreConnector.read(query, project, namespace): client = datastore.Client(project, namespace) return query.fetch(client=client) Note that we are passing the client to the query at fetch time. All this works fine when the Could these checks be changed to, Or is there any workaround for us? Activity
MetadataMetadataAssigneesLabelsapi: datastoreIssues related to the Datastore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |