Python 3.9 is now generally available.

google.appengine.api.datastore.DatastoreAdapter

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

Inherits From: AbstractAdapter, expected_type

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

Methods

entity_to_pb

View source

Turn a user-level entity into an entity_pb2.EntityProto.

entity_to_pb_v1

View source

Turn a user-level entity into an googledatastore.Key.

get_entity_converter

View source

get_query_converter

View source

key_to_pb

View source

Turn a user-level key into an entity_pb2.Reference.

key_to_pb_v1

View source

Turn a user-level key into an googledatastore.Key.

new_entity_pb

View source

Create a new, empty entity_pb2.EntityProto.

new_key_pb

View source

Create a new, empty entity_pb2.Reference.

pb_to_entity

View source

Turn an entity_pb2.EntityProto into a user-level entity.

pb_to_index

View source

Turn an entity_pb2.CompositeIndex into a user-level Index representation.

pb_to_key

View source

Turn an entity_pb2.Reference into a user-level key.

pb_to_query_result

View source

Turn an entity_pb2.EntityProto into a user-level query result.

pb_v1_to_entity

View source

Turn an googledatastore.Entity into a user-level entity.

pb_v1_to_key

View source

Turn an googledatastore.Key into a user-level key.

pb_v1_to_query_result

View source

Turn an googledatastore.Entity into a user-level query result.

index_direction_mappings

{
 1: 1,
 2: 2
}

index_state_mappings

{
 1: 0,
 2: 1,
 3: 2,
 4: 3
}