Returns the composite index definition XML needed for a query.
google.appengine.datastore.datastore_index.IndexXmlForQuery(
kind, ancestor, props
)
Given a query, the arguments for this method can be computed with:
_, kind, ancestor, props = datastore_index.CompositeIndexForQuery(query)
props = datastore_index.GetRecommendedIndexProperties(props)
Args |
kind
|
The kind or None
|
ancestor
|
True if this is an ancestor query, False otherwise.
|
props
|
PropertySpec objects.
|
Returns |
A string with the XML for the composite index needed by the query.
|