Unique Constraint At Data Level in GAE

后端 未结 2 1354
梦如初夏
梦如初夏 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.

提交回复
热议问题