On Oct 19, 2011, at 8:19 AM, lestat wrote: > I have such model: > > class Test(db.Model): > __tablename__ = 'test' > > id = db.Column(db.Integer, primary_key=True) > > subject = db.Column(db.String(512), nullable=False) > > level = None
arbitrary SQL expressions can be added to a mapping as described at http://www.sqlalchemy.org/docs/orm/mapper_config.html#sql-expressions-as-mapped-attributes . That said if it were really just "99" I'd do that at the Python level; assuming you need some DB functionality within "level". -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.