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

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
Create an sql trigger

Examples:

>>> Trigger('tr_archive').temp.if_not_exists.before.delete_on('notes')    .do_sql('INSERT INTO archive (noteid,notetext) VALUES (old._id,old.text)')
CREATE TEMP TRIGGER IF NOT EXISTS tr_archive
  BEFORE DELETE ON notes
  BEGIN
    INSERT INTO archive (noteid,notetext) VALUES (old._id,old.text);
  END

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/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)