Google App Engine有两种不同的数据存储包:google.golang.org/appengine/datastore和cloud.google.com/go/datastore .
b28126 for appengine / datastore包使用标准环境,而the documentation for cloud包使用flex环境 .
我有一个Go应用程序,它使用标准GAE环境中的appengine / datastore包 . 如果我想将此应用程序从标准环境迁移到flex环境,是否需要切换到cloud.google.com/go/datastore软件包,还是可以继续使用appengine / datastore软件包?如果没有,为什么不呢?
1 回答
您需要迁移到cloud.google.com/go/datastore .
来自Migrating Services from the Standard Environment to the Flexible Environment:
从Cloud Datastore: