google.appengine.datastore.datastore_rpc.AbstractAdapter

Abstract interface between protobufs and user-level classes.

Inherits From: expected_type

This class defines conversions between the protobuf classes defined in entity_pb.py on the one hand, and the corresponding user-level classes (which are defined by higher-level API libraries such as datastore.py or db.py) on the other hand.

The premise is that the code in this module is agnostic about the user-level classes used to represent keys and entities, while at the same time provinging APIs that accept or return such user-level classes.

Higher-level libraries must subclass this abstract class and pass an instance of the subclass to the Connection they want to use.

These methods may raise datastore_errors.Error for bad inputs.

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.