I missed the obvious there on the choice of the target which caused my
issues.
Using @event.listens_for(Base.metadata, 'after_create') worked.

Thanks Michael,
jlc


On Fri, Nov 22, 2013 at 8:18 AM, Michael Bayer <mike...@zzzcomputing.com>wrote:

> there’s an after_create event:
>
>
> http://docs.sqlalchemy.org/en/rel_0_9/core/events.html?highlight=after_create#sqlalchemy.events.DDLEvents.after_create
>
>
>
> On Nov 21, 2013, at 8:02 PM, Joseph Casale <jcas...@gmail.com> wrote:
>
> Is it possible to construct a listener for this event, such that once all
> DDL has been run, some
> custom DLL statement(s) could be run without tying these to a specific
> table for example?
>
> Something like what @event.listens_for(Engine, 'connect') does but, but
> only after create just
> before the session ends?
>
> 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.
>
>
>

-- 
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.

Reply via email to