visch
12/06/2022, 3:09 PMvisch
12/06/2022, 4:32 PMchristoph
12/06/2022, 8:26 PMTypeEngine.as_generic()
which is intended for transferring schemas between different database vendors. https://docs.sqlalchemy.org/en/20/core/reflection.html#metadata-reflection-dbagnostic-types
There is a use case for reflection which is that a given Table is to be transferred to a different vendor database. To suit this use case, there is a technique by which these vendor-specific datatypes can be converted on the fly to be instance of SQLAlchemy backend-agnostic datatypes, for the examples above types such as Integer, Interval and Enum. This may be achieved by intercepting the column reflection using the DDLEvents.column_reflect() event in conjunction with the TypeEngine.as_generic() method.
visch
12/06/2022, 8:29 PMchristoph
12/06/2022, 8:33 PMvisch
12/06/2022, 8:36 PMvisch
12/06/2022, 8:36 PM