Re: Example of inline autogenerated use?

2020-11-05 Thread Mike Bayer
Not quite given in an example, I guess I could add as a recipe but then people will be using it which as you've noted isn't reliable in the general sense, let's put together how to get the MigrationScript, which it looks like you have, with then how to make the Operations object programmatically

Example of inline autogenerated use?

2020-11-04 Thread Jason Pascucci
I couldn't lay my hands on an example of using MigrationContext(connect=) and running the results of produce_migrations(Base.metadata, mc). I got close, I think, evaling the results of render_python_code (which failed due to spaces, but I can wrap it into a def, I guess), but I think there's