View source on GitHub |
A stub that maps datastore service calls on to a BaseDatastore.
Inherits From: expected_type
google.appengine.datastore.datastore_stub_util.DatastoreStub(
datastore, app_id=None, trusted=None, root_path=None
)
This class also keeps track of query cursors.
Methods
Clear
Clear()
Clears out all stored values.
QueryHistory
QueryHistory()
Returns a dict that maps Query PBs to times they've been run.
SetTrusted
SetTrusted(
trusted
)
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. |