Re: How to determine whether Alembic is active

2014-05-16 Thread gbr
True. I should have modified def run_migrations_online(): Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context. engine = engine_from_config( config.get_section(config.config_ini_section),

[sqlalchemy] Re: mysql, use password from my.cnf file

2014-05-16 Thread Anon Define
excellent; thanks! On Monday, September 29, 2008 4:48:18 PM UTC-5, Tom H wrote: Depending on security preferences, it may be desirable to keep database passwords out of code files. One of the recommendations for MySQL is to keep the password in a .my.cnf file accessible only to the user.