from sqlalchemy.orm import aliased as _aliased
def aliased(entity): return _aliased(entity, name=entity.__table_alias__) ? On 04/20/2016 10:25 AM, SPetro wrote:
Hi, is possible to have "default" alias for table class Cwle(Base): __tablename__ = 'CardiacWaitListEntry' __table_alias__ = 'CWLE' I know you can do this Cwle = aliased(Cwle, name='CWLE') but this screw up any editor intellisense. Output of sqalchemy query would be more readable and what we use as convention. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com <mailto:sqlalchemy+unsubscr...@googlegroups.com>. To post to this group, send email to sqlalchemy@googlegroups.com <mailto:sqlalchemy@googlegroups.com>. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
-- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.