Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
Unique constraint on a table

Example:

>>> Unique('name')
UNIQUE (name)

>>> Unique('artist', 'album')
UNIQUE (artist, album)
(more...)

src/a/n/AndroidCodeGenerator-HEAD/sample_with_trigger.py   AndroidCodeGenerator(Download)
"""Generate a sample project with triggers"""
 
from AndroidCodeGenerator.generator import Generator
from AndroidCodeGenerator.db_table import (Table, Column, ForeignKey, Unique,
                                           Trigger)

src/a/n/AndroidCodeGenerator-HEAD/sample_test.py   AndroidCodeGenerator(Download)
 
from AndroidCodeGenerator.generator import Generator
from AndroidCodeGenerator.db_table import (Table, Column, ForeignKey, Unique,
                                           Trigger)
from AndroidCodeGenerator.database_triggers import DatabaseTriggers

src/a/n/AndroidCodeGenerator-HEAD/sample.py   AndroidCodeGenerator(Download)
"""Generate a sample project"""
 
from AndroidCodeGenerator.generator import Generator
from AndroidCodeGenerator.db_table import Table, Column, ForeignKey, Unique
 

src/a/n/AndroidGCMTutorial-HEAD/linksdb.py   AndroidGCMTutorial(Download)
"""Generate a sample project"""
 
from AndroidCodeGenerator.generator import Generator
from AndroidCodeGenerator.db_table import (Table, Column, ForeignKey,
                                           Unique, Trigger)