Skip to main content
 首页 » 编程设计

python之谷歌云数据存储 : Are its App Engine Libraries usable on Compute Engine

2024年10月25日31duanxz

我使用 ndb.Model 和 ndb.PolyModel 为我的 Python App Engine 应用构建了一组复杂的 NDB 模型,其中包含大量 StructuredProperty 和专门的 ndb.Property 属性。

是否可以在 Compute Engine 实例上使用在 App Engine 上运行的 google.ext.ndb 等库?

这样我就可以在 App Engine 和 Compute Engine 上使用相同、舒适的 NDB 对象模型来存储和查询数据。

请您参考如下方法:

NDB 目前不支持 Google Cloud Datastore(您可以从 Compute Engine 调用的 API),但我们正在努力添加它。我们目前没有要分享的时间表,但您可以通过在我们的 GitHub 跟踪器上订阅此问题来接收有关该功能的通知: https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/2