>> @compiles(Select) >> def contextual_select_thing(select, compiler, **kw):
This method gets registered with Select. But How/When does this registration automatically happen? >> The caveat however for update/insert/delete when used with the ORM is that >> the mapper caches its compilation of these constructs Why does mapper cache for update/insert/delete and can you confirm it does not do this for select and I can safely use this approach for select with ORM? >> The idiomatic way to modify the insert/update/delete construct within a >> flush is to use MapperExtension before_insert/before_update/before_delete to >> modify the mapped object's state right before it's flushed. Is there a recipe/code which I can quickly refer to get started on before_insert and also how to modify a insert statement in before_insert? -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
