Would be nice if Alembic exposed friendly Python interfaces

2014-06-10 Thread Jon Rosebaugh
At my workplace, we use Alembic to handle migrations, but we frequently have minor issues like forgetting to downgrade to the most recent common migration before switching git branches, or not noticing that a branch has migrations to be run when checking it out. This causes a bit of aggravation.

Re: [sqlalchemy] Emission of Different DDL for Null and Not Null Columns

2014-06-10 Thread Jonathan Vanasco
On Monday, June 9, 2014 8:06:52 PM UTC-4, Michael Weylandt wrote: You and SQLAlchemy truly are one of the most impressive projects I use on a daily basis. +1 -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To unsubscribe from this group

[sqlalchemy] another quick question regarding abstract classes

2014-06-10 Thread Richard Gerd Kuesters
so, here i am again with another weird question, but it may be interesting for what it may come (i dunno yet). the problem: i have a collection of abstract classes that, when requested, the function (that does the request) checks in a internal dictionary if that class was already created or

[sqlalchemy] Sub-classing declarative classes

2014-06-10 Thread Noah Davis
Hi, I've been banging my head against this one for several days now, and aside from a three year-old post here, I've come up empty. I've got a python module that defines a set of Declarative models that several other applications may use. What I'd like is some way to for the individual

Re: [sqlalchemy] Sub-classing declarative classes

2014-06-10 Thread Mike Bayer
On Tue Jun 10 15:47:00 2014, Noah Davis wrote: some_model.py --- [SQLA setup of Base class here] class Alice(Base): __tablename__ = 'alice' id = Column(Integer, primary_key=True) value = Column(String) class Bob(Base): __tablename__ = 'bob'

Re: [sqlalchemy] another quick question regarding abstract classes

2014-06-10 Thread Mike Bayer
On Tue Jun 10 15:36:09 2014, Richard Gerd Kuesters wrote: so, here i am again with another weird question, but it may be interesting for what it may come (i dunno yet). the problem: i have a collection of abstract classes that, when requested, the function (that does the request) checks in a

[sqlalchemy] Re: Sub-classing declarative classes

2014-06-10 Thread Noah Davis
Sorry, poor choice of words on my part, there. I meant do the Right Thing by the model I was trying to construct. Both of these examples are exactly what I was looking for - something to point me in the right direction. I'm also not convinced my model is the best solution to my problem, but at