跳转到主要内容

Google Appengine NDB的穷人唯一约束

项目描述

Google Appengine NDB的唯一约束

NDBUnq使用NDB钩子模拟Google Appengine Datastore上的唯一约束。

示例

有一个完整的Flask示例:https://github.com/vmihailenco/ndbunq-example/

import ndbunq
from google.appengine.ext import ndb


class User(ndbunq.Model):
    username = ndb.StringProperty(required=True)

    class Meta:
        # username is guaranteed to be unique
        unique = (('username',),)

项目详情


下载文件

下载适用于您平台文件的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

ndbunq-0.1.0.tar.gz (2.5 kB 查看哈希值)

上传时间:

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面