Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now available in preview.

google.appengine.datastore.datastore_stub_util.DatastoreStub

A stub that maps datastore service calls on to a BaseDatastore.

Inherits From: expected_type

This class also keeps track of query cursors.

Methods

Clear

View source

Clears out all stored values.

QueryHistory

View source

Returns a dict that maps Query PBs to times they've been run.

SetTrusted

View source

Set/clear the trusted bit in the stub.

This bit indicates that the app calling the stub is trusted. A trusted app can write to datastores of other apps.

Args
trusted boolean.