We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b73c7b + 95336d9 commit abe3d7cCopy full SHA for abe3d7c
gcloud/datastore/entity.py
@@ -68,6 +68,16 @@ class Entity(dict):
68
>>> dict(entity)
69
{'age': 20, 'name': 'JJ'}
70
71
+ .. note::
72
+
73
+ When saving an entity to the backend, values which are "text"
74
+ ('unicode' in Python2, 'str' in Python3) will be saved using
75
+ the 'text_value' field, after being encoded to UTF-8. When
76
+ retrieved from the back-end, such values will be decoded to "text"
77
+ again. Values which are "bytes" ('str' in Python2, 'bytes' in
78
+ Python3), will be saved using the 'blob_value' field, without
79
+ any decoding / encoding step.
80
81
"""
82
83
def __init__(self, dataset=None, kind=None):
0 commit comments