I have a module I import which has some table defs and global sessionmaker() instance. If the module is ran directly, it executes a create_all() to build a new db.
I am trying to add a trigger DDL event listener: trg = DDL('...') event.listen( SomeName.__table__, 'after_create', trg.execute(bind=engine) ) But it excepts as the table doesn't exist. I assume this is a commit issue maybe? What is the correct way to do something like this? Thanks! jlc -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.