Re: [sqlalchemy] MutableDict throwing AttributeError on declaraion

2015-06-03 Thread Mike Bayer
On 6/3/15 3:34 PM, SQLRook wrote: Consider the following class, with one MutableDict column (SQLA v1.0.4) Base = declarative_base() class Thing(Base): someDict = Column(MutableDict) This is immediately throwing an Attribute error: File "path\sqlalchemy\sql\schema.py", line 1174, in _

[sqlalchemy] MutableDict throwing AttributeError on declaraion

2015-06-03 Thread SQLRook
Consider the following class, with one MutableDict column (SQLA v1.0.4) Base = declarative_base() class Thing(Base): someDict = Column(MutableDict) This is immediately throwing an Attribute error: File "path\sqlalchemy\sql\schema.py", line 1174, in __init__ self._init_items(*args)

Re: [sqlalchemy] Re: getting 'No database selected' randomly from session

2015-06-03 Thread Mike Bayer
On 6/3/15 7:43 AM, eli rashlin wrote: Thank you Michael for your answer. How can I use the schema in a query object, is there a way to do it? if the Table has "schema" on it, the schema name will be rendered into queries automatically.. On Tuesday, June 2, 2015 at 6:26:43 PM UTC+3, Mi

Re: [sqlalchemy] Re: getting 'No database selected' randomly from session

2015-06-03 Thread eli rashlin
Thank you Michael for your answer. How can I use the schema in a query object, is there a way to do it? On Tuesday, June 2, 2015 at 6:26:43 PM UTC+3, Michael Bayer wrote: > > > > On 6/2/15 5:54 AM, eli rashlin wrote: > > BTW is there a way in sqlalchemy to append the name of the database to

[sqlalchemy] Re: querying Class Inheritance Hierarchies

2015-06-03 Thread g
Hi Thanks for the hint. FYI: Finally i decided to use hybrid_property and conditional logic using this model class Employee(Base): __tablename__ = 'employee' id = Column(Integer, primary_key=True) name = Column(String(50)) type = Column(String(50)) __mapper_args__ = {