Re: Extending OpContainer?

2015-11-13 Thread Alyssa Kwan
Thank you! On Friday, November 13, 2015 at 3:03:41 AM UTC-8, Michael Bayer wrote: > > > > On 11/12/2015 11:46 AM, Alyssa Kwan wrote: > > Thanks, Michael! > > > > In terms of the ReplaceableObject, I was hoping for a composite > > operation that could use existing Alembic operations, without

Re: Extending OpContainer?

2015-11-13 Thread Mike Bayer
On 11/12/2015 11:46 AM, Alyssa Kwan wrote: > Thanks, Michael! > > In terms of the ReplaceableObject, I was hoping for a composite > operation that could use existing Alembic operations, without needing to > generate the underlying SQL. For instance, the single composite > operation would

Re: Extending OpContainer?

2015-11-12 Thread Mike Bayer
I'd take a look at http://alembic.readthedocs.org/en/latest/api/operations.html#operation-plugins and for a longer example http://alembic.readthedocs.org/en/latest/cookbook.html#replaceable-objects. On 11/11/2015 04:26 PM, Alyssa Kwan wrote: > Hi all, > > I have a single logical Alembic

Re: Extending OpContainer?

2015-11-12 Thread Alyssa Kwan
Thanks, Michael! In terms of the ReplaceableObject, I was hoping for a composite operation that could use existing Alembic operations, without needing to generate the underlying SQL. For instance, the single composite operation would use Alembic's built-in create_table() in sequence with other

Extending OpContainer?

2015-11-11 Thread Alyssa Kwan
Hi all, I have a single logical Alembic operation that is best implemented as a series of lower level operations (like create_sequence, create_table(s), add_constraint(s), etc.). What's the best way to implement this? I assume it would be to somehow extend OpContainer? I don't see any