Reputation: 5639
I'd like to customize database connection in Pylons application. I'm interested in changing these arguments:
In SqlAlchemy the arguments are passed to *create_engine* call, like here: http://docs.sqlalchemy.org/en/rel_0_9/core/engines.html?highlight=pool_size#sqlalchemy.create_engine
How can I change those params in Pylons?
Upvotes: 0
Views: 709
Reputation: 5303
you should be able to do it right in your ini file, it's been a while since I did pylons but IIRC, assuming you said yes to the sqlalchemy question when you created the project, all items prefixed with "slqalchemy." are given as keywords to the engine_from_config method in sqlalchemy. see the config/environment.py file for more.
sqlalchemy.url=<your db connection info>
sqlalchemy.pool_size= ??
sqlalchemy.pool_recycle= ??
Upvotes: 1