Unique Constraint At Data Level in GAE

后端 未结 2 1345
梦如初夏
梦如初夏 2020-12-21 19:01

It seems that the unique constraint is not natively supported in GAE, although one can enforce unique check before putting an object to store.

But tha

相关标签:
2条回答
  • 2020-12-21 19:18

    You can achieve a "unique constraint" in app engine's data store as described here. The example is presented in Java, but you should be able to apply the same concepts in python.

    0 讨论(0)
  • 2020-12-21 19:27

    No, you still cannot specify unique during schema creation.

    This issue is located here in case you want to watch it. It doesn't show up on their list of features on deck yet, so it seems like there are other features they will be working on first.

    0 讨论(0)
提交回复
热议问题