Skip to content

Looking for @declared_attr support #69

@flayman

Description

@flayman

Hi,

I use Mixin classes in my model definitions so that I can set up common relationships on derived classes in one place. All of my entities and their tables make use of standard created, modified, createdBy, and modifiedBy attributes. The createdBy and modifiedBy attributes refer to instances of a Person class stored in a person table. To get this to work I've created a base Entity class which inherits from sqlalchemy.ext.declarative.AbstractConcreteBase and sets up the common columns and relationships through function attributes with the sqlalchemy.ext.declarative.declared_attr decorator. SQLAthanor doesn't seem to support this pattern. Is it something which could be supported without undue effort? Thanks.

Regards,
Matt

Metadata

Metadata

Labels

questionFurther information is requestedtestsAdd unit tests or modify the test matrix.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions