Closed jsormaz closed 10 months ago
Seems that I can just force the behaviour I want by initializing my column from the postgressql ARRAY type directly:'
from sqlalchemy.dialects.postgresql import ARRAY
from sqlalchemy import DateTime
...
class HistoryTable(Base):
timestamps = Column(ARRAY(DateTime(timezone=True)), default=[])
...
I have an array column defined as follows:
However, when I dump this object, this column gets mapped to
<class 'marshmallow.fields.Raw'>
in marshmallows_sqlalchemy/convert.py, we have:
however, when I inspect my column, the mro is presenting as:
so it is not matching against the "postgressql.ARRAY" key