Re: [sqlalchemy] How to customize base declarative class to add naming conventions

2018-09-05 Thread René-paul Debroize
It would have been great to be able to do it via a mixin, I have several DB using decalarative base constructed with this Base mixin and I liked to have the same naming_convention for all the DBs without repeating myself. If it's not I guess i can still manage to find an acceptable way of doing it

Re: autogenerate revision fails in a multi-db project generated with: `alembic init --template multidb alembic`

2018-08-13 Thread René-paul Debroize
Hello Thank you for your answer. The problem was that the entry db_name was missing from the alembic.ini file. It is not how I configure the engine. However add something like: config.set_main_option("databases", db_names) rather than just fill the db_name var in the env.py file fixed the