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

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
Foreign key constraint

Example:

>>> ForeignKey('listid').references('list', '_id').on_delete_cascade
FOREIGN KEY (listid) REFERENCES list(_id) ON DELETE CASCADE

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)