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 SQLAlchemy create_all for a first version to create the 
schema.  I got my metadata from op.get_context.opts['target_metadata'], but 
I can't figure out how to get the engine or connection to provide as the 
create_all parameter... The snippet at the provided URL just shows 
"my_metadata" and "engine" variables without showing where these came from. 
 Am I missing?  Some solid Googling didn't turn anything up...

Thanks so much!
Ryan

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy-alembic+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to