App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Static Public Attributes | List of all members
google.appengine.api.datastore.DatastoreAdapter Class Reference
Inheritance diagram for google.appengine.api.datastore.DatastoreAdapter:

Public Member Functions

def key_to_pb
 
def pb_to_key
 
def entity_to_pb
 
def pb_to_entity
 
def pb_to_index
 

Static Public Attributes

dictionary index_state_mappings
 
dictionary index_direction_mappings
 

Detailed Description

Adapter between datatypes defined here (Entity etc.) and protobufs.

See the base class in datastore_rpc.py for more docs.

Member Data Documentation

dictionary google.appengine.api.datastore.DatastoreAdapter.index_direction_mappings
static
Initial value:
1 = {
2  entity_pb.Index_Property.ASCENDING: Index.ASCENDING,
3  entity_pb.Index_Property.DESCENDING: Index.DESCENDING
4  }
dictionary google.appengine.api.datastore.DatastoreAdapter.index_state_mappings
static
Initial value:
1 = {
2  entity_pb.CompositeIndex.ERROR: Index.ERROR,
3  entity_pb.CompositeIndex.DELETED: Index.DELETING,
4  entity_pb.CompositeIndex.READ_WRITE: Index.SERVING,
5  entity_pb.CompositeIndex.WRITE_ONLY: Index.BUILDING
6  }

The documentation for this class was generated from the following file: