Skip to main content

Poor man unique constraints for Google Appengine NDB

Project description

Unique constraints for Google Appengine NDB

NDBUnq emulates unique constraints on Google Appengine Datastore using NDB hooks.

Example

There is full working example for 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',),)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ndbunq-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file ndbunq-0.1.0.tar.gz.

File metadata

  • Download URL: ndbunq-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ndbunq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 77d9f1adff1bab96aafb5d1b39fa9d7c09698eec8a81d54aa4c796f3d3501ee3
MD5 70a4385d505051c18f2cdcff9d63857e
BLAKE2b-256 cd0abfe699d036af45a110bac27701abf1161c38299f1d8a01178d9ee2c2a7ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page