Re: [sqlalchemy] Access other columns in a custom type

2023-04-13 Thread Mike Bayer
On Thu, Apr 13, 2023, at 6:10 AM, Hussein Samadi wrote: > Hi everyone. > I'm creating a new SQLA custom type using TypeDecorator base class. Is it > possible to have access to the value of other fields in > "process_result_value" method? Generally, is it possible to create a custom > type

[sqlalchemy] Access other columns in a custom type

2023-04-13 Thread Hussein Samadi
Hi everyone. I'm creating a new SQLA custom type using TypeDecorator base class. Is it possible to have access to the value of other fields in "process_result_value" method? Generally, is it possible to create a custom type that have access to other column's data in the de-serialization