use op.get_bind()
http://alembic.readthedocs.org/en/latest/ops.html#alembic.operations.Operations.get_bind
On Jan 31, 2014, at 11:29 PM, Ryan Eberhardt wrote:
> Does anyone have any advice for getting the connection outside of env.py?
>
> Thanks,
> Ryan
>
> On Monday, January 27, 2014 8:30:4
Does anyone have any advice for getting the connection outside of env.py?
Thanks,
Ryan
On Monday, January 27, 2014 8:30:49 AM UTC-6, Ryan Eberhardt wrote:
>
> Wow, thanks for such a fast response! I used the env.py script from here:
> https://github.com/inklesspen/pyramid_alembic_mako/blob/maste
Wow, thanks for such a fast response! I used the env.py script from
here:
https://github.com/inklesspen/pyramid_alembic_mako/blob/master/pyramid_alembic/alembic/%2Bpackage%2B/alembic/env.py_tmpl
Line 15:
> engine = engine_from_config(config.get_section('app:main'), 'sqlalchemy.')
>
Then in run_
On Jan 27, 2014, at 1:47 AM, Ryan Eberhardt wrote:
> Context: I'm using Pyramid with SQLAlchemy, and am pretty deep into a project
> with no database versioning. I'm looking to use Alembic to start doing that.
>
> I read at
> http://alembic.readthedocs.org/en/latest/tutorial.html#building-an
Context: I'm using Pyramid with SQLAlchemy, and am pretty deep into a
project with no database versioning. I'm looking to use Alembic to start
doing that.
I read
at
http://alembic.readthedocs.org/en/latest/tutorial.html#building-an-up-to-date-database-from-scratch
that I can use the SQLAlch