Skip to content

How do i inherit mapped_column or Column Class to add additional column properties ? #11511

Discussion options

You must be logged in to vote

Sure, all previous orm mapping styles continue to be supported in v2.

The suggested is the one that uses Mapped and mapped_column because it's the one that best integrates with typing tools.

Note that I would instead use a function that abstracts how to get the custom props from a column or orm attribute. This way you could simply use a key in info

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@saikiran2603
Comment options

@CaselIT
Comment options

@saikiran2603
Comment options

@CaselIT
Comment options

Answer selected by saikiran2603
@saikiran2603
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants