标签: python google-app-engine google-cloud-datastore
从this stackoverflow answer开始,我收集我可以从我的数据库中获取记录,甚至不知道它的模型,我只需要密钥。如果这样可行,那么我该如何访问模型元数据以便找到它的类型?
更新 - 从提供的答案
record_kind = record.kind() #talk about being intuitive..... and thick
答案 0 :(得分:2)
密钥中指定了种类,请参阅https://developers.google.com/appengine/docs/python/datastore/keyclass#Introduction