[sqlalchemy] SQLAlchemy utility function to evaluate a string

2018-03-15 Thread Josh
Currently, SQLA lets us use constructs like `child = relationship('Child')`, where 'Child' is Python code that is evaluated against some global-ish namespace. (More advanced: "Child.id == Parent.id", etc) Is this something that is available as a public library? We'd like to use a similar

Re: [sqlalchemy] more granular logging configuration

2018-03-15 Thread Mike Bayer
On Thu, Mar 15, 2018 at 8:25 AM, Uri Okrent wrote: > Hey all, are there any more knobs to turn besides the logging debug level > ("DEBUG", "INFO")? Specifically I would like to somehow be able to log > read-only queries to a separate log (or maybe even skip logging those >

[sqlalchemy] more granular logging configuration

2018-03-15 Thread Uri Okrent
Hey all, are there any more knobs to turn besides the logging debug level ("DEBUG", "INFO")? Specifically I would like to somehow be able to log read-only queries to a separate log (or maybe even skip logging those altogether) since they are far more numerous and frequent. Thanks --

Applying updates to a database with an existing alembic_version

2018-03-15 Thread Jesper Larsen
I am using a project which has a database and uses alembic to upgrade the database. The migrations are stored in the project directory. I want to apply some custom migrations on top of these. But it seems like alembic requires me to have all the migration scripts including the vendor ones in