有很多关于将NDB API 与 Google App Engine Datastore 一起使用的信息,但我找不到任何关于如何将 NDB 与 Google Cloud Datastore 一起使用的信息。我发现的唯一模块是googledatastore,它是一个非常原始的库。
App Engine Datastore 与 Cloud Datastore 有何不同?NDB 是否可用于 Cloud Datastore?
有很多关于将NDB API 与 Google App Engine Datastore 一起使用的信息,但我找不到任何关于如何将 NDB 与 Google Cloud Datastore 一起使用的信息。我发现的唯一模块是googledatastore,它是一个非常原始的库。
App Engine Datastore 与 Cloud Datastore 有何不同?NDB 是否可用于 Cloud Datastore?
NDB support outside of App Engine (using Google Cloud Datastore) is currently in development.
UPDATE: Check out the NDB
development discussion on GitHub.
您可能想尝试使用gcloud.datastore
( pip install gcloud
)。