Google Cloud Datastore Emulator如何验证我们的datastore-index.xml?

时间:2018-08-05 06:07:33

标签: google-app-engine google-cloud-datastore gae-eclipse-plugin

我们使用Google Cloud Datastore Emulator。它会自动生成indexes.yaml。但是,就像我们使用旧版Eclipse的Google Plugin一样,我们希望在本地开发环境中获得丢失索引的消息,而不是在以后的云部署中。因此,我们希望仿真器使用我们手动维护的datastore-indexes.xml

我们如何在Google Cloud Datastore Emulator中配置特定datastore-indexes.xml的使用?我没有在帮助文本中看到任何相关的命令行开关。

1 个答案:

答案 0 :(得分:4)

编辑

我的答案基于dev_appserver模拟器,而不是当前的模拟器。在运行了一些测试之后,看来该仿真器仅具有subset of the Datastore API methods的端点,并且索引构建(对此也没有导出/导入)。

留下我以前的答案,以避免重复的回答,并给出相同的错误信息:

_________

根据the docs,如果autoGenerate="false"在您的datastore-indexes.xml中,则开发服务器应忽略WEB-INF/appengine-generated/datastore-indexes-auto.xml的内容。

尽管我尚未测试过,但我认为这可能是您正在寻找的东西。