Re: Use events with expression api

2020-09-30 Thread Mike Bayer
SQL expressions are intercepted by the SQL Execution events described at https://docs.sqlalchemy.org/en/13/core/events.html#sql-execution-and-connection-events and the main ones are before_execute() and before_cursor_execute(), but it depends on what you want to do.if you want to change how

Use events with expression api

2020-09-30 Thread brian...@blue-newt.com
Is there a way to use events with the expression api? I see how they're used with ORM and Core but not expressions. Thanks, Brian -- You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group. To unsubscribe from this group and stop receiving emails

Use events with expression api

2020-09-30 Thread brian...@blue-newt.com
Is there a way to use events with the expression api? I see how they're used with ORM and Core, but not expressions. Thanks, Brian -- You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group. To unsubscribe from this group and stop receiving emails

Re: Stray changes detected only sometimes with revision --autogenerate

2020-09-30 Thread Daniel Krebs
Hi Mike, I adapted our setup to the new cookbook recipe and it basically fixed both problems! I don't need to maintain my patches anymore (thanks to setting `connection.dialect.default_schema_name`, this did the trick!) and the detected stray changes are also gone. I did some investigation