GoogleCloudPlatform / datastore-ndb-python

Client library for use with Google Cloud Datastore from within the Google App Engine Python runtime.
https://cloud.google.com/appengine/docs/standard/python/ndb/
Apache License 2.0
114 stars 48 forks source link

Include PropertyOrder in Query __repr__ #295

Open msdinit opened 5 years ago

msdinit commented 5 years ago

I don't know if the TODO is still relevant, but repr of PropertyOrder looks decent to me

Examples of produced output:

orders=PropertyOrder(<name>, DESCENDING)
orders=CompositeOrder([PropertyOrder(<name>, DESCENDING), PropertyOrder(<name_slug>)])