Groups
Groups
Sign in
Groups
Groups
sqlalchemy
Conversations
About
Send feedback
Help
SQL Alchemy TypeDecorator
25 views
Skip to first unread message
Justvuur
unread,
Aug 9, 2022, 1:55:45 PM
8/9/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlalchemy
Hi there,
Is there a way to pass/access model data for a row within the " process_result_value" method of a TypeDecorator?
For example, I want to decrypt the value but only if another value in the same model row is true/false.
Regards,
Justin
Jonathan Vanasco
unread,
Aug 9, 2022, 7:37:01 PM
8/9/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlalchemy
This is usually done in the ORM with functions, and possibly hybrids.
See
https://docs.sqlalchemy.org/en/14/orm/mapped_attributes.html
Reply all
Reply to author
Forward
0 new messages