sqlalchemy engine passing specific arguments to a specific engine

14 views
Skip to first unread message

alonn

unread,
Sep 4, 2012, 3:15:23 AM9/4/12
to turbo...@googlegroups.com
In my applicaton  I use 2 sqlalchemy engines,I need to pass specific args to one of them. how can I do this?

tried adding them to the connection url but this isn't the right way, checked app_cfg and saw:

engine2 = engine_from_config(pylons_config, 'sqlalchemy.second.')

that the args are coming in this format with pylons_config , which is the same for both engines
how should I do this?

thanks

using tg 2.1.4 with sqlalchemy 0.7.3,python 2.7

alonn

unread,
Sep 4, 2012, 12:52:32 PM9/4/12
to turbo...@googlegroups.com
nevermind, found the answer
pass the parameters in config.ini as:
sqlalchemy.second.paramnae = somevalue
Reply all
Reply to author
Forward
0 new messages