Databases Reference
In-Depth Information
TABLE 10-2: Property Types and Corresponding Classes in GAE Python API
GAE API
DEFINE DATA
TYPE
ADDITIONAL
NOTES
VALUE TYPE
PROPERTY CLASS
SORT ORDER
str, Unicode
StringProperty
Unicode
< 500 characters.
str treated as
ASCII for sorting.
No
db.Text
TextProperty
not orderable
long string (>500
characters).
Yes
db.ByteString
ByteStringProperty
byte order
< 500 bytes.
Db.ByteString
extends str
and represents
unencoded
string of bytes.
Yes
db.Blob
BlobProperty
not orderable
Byte strings
up to 1 MB.
Yes
Bool
BooleanProperty
False < True
No
int, long (64
bit)
IntegerProperty
Numeric
No
Float
FloatProperty
Numeric
If fl oat and int
together then int
< fl oat, which
means 5 < 4.5.
No
datetime
.datetime
DateTimeProperty,
DateProperty,
TimeProperty
chronological
No
List of
supported
value types
ListProperty,
StringListProperty
If ASC, by least
element
If DESC, by greatest
element
No
Null
Python 'None'.
No
A value of 'No' in this column implies that the data type isn't defi ned in the GAE
Python API but is defi ned in the Python language and its standard libraries.
Search WWH ::




Custom Search