View source on GitHub |
Parses an individual index definitions document from string or stream.
google.appengine.datastore.datastore_index.ParseIndexDefinitions(
document, open_fn=None
)
Args | |
---|---|
document
|
YAML document as a string or file-like stream. |
open_fn
|
Function for opening files. Unused. |
Raises | |
---|---|
EmptyConfigurationFile when the configuration file is empty.
MultipleConfigurationFile when the configuration file contains more than
one document.
|
Returns | |
---|---|
Single parsed YAML file if one is defined, else None .
|