Customise column type parameters for reflection #6141
-
Is your feature request related to a problem? Please describe. Describe the solution you'd like Describe alternatives you've considered Bonus question: Will anything break if I replace type of the column after the Table is made? Because then I could just iterate through all the Table objects's columns and swap them out for now. Second bonus question: Why can't we call |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The automap base documents this hook, which is not specific to automap, at https://docs.sqlalchemy.org/en/14/orm/extensions/automap.html#intercepting-column-definitions . Inspect the "type" member of the dictionary for the UUID type and set as_uuid=True.
probably not but as above this is unnecessary.
This would add 50000 function calls to a SQL statement that returns 10000 rows with 5 UUID values in each row. |
Beta Was this translation helpful? Give feedback.
The automap base documents this hook, which is not specific to automap, at https://docs.sqlalchemy.org/en/14/orm/extensions/automap.html#intercepting-column-definitions . Inspect the "type" member of the dictionary for the UUID type and set as_uuid=True.