Hello, I need to store a matrix into the database and I was evaluating the possibility to have a column of JSON type in MySQL to store it. What I would like to achieve is the possibility of operating on a numpy array when manipulating that column on Python while keeping a "meaningful" data type on the DB, if possible.
I was reading the Custom Types section of the documentation and, even though the application I envisage looks like just an extension to the JSON datatype, I believe to have understood that the `TypeDecorator` approach can't store a state (i.e. the numpy array). Is that correct? So do I need to use the `UserDefined` subclassing method? Thanks in advance, -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.