Re: [sqlalchemy] "Virtual models" for JSONB data?

2020-07-06 Thread Pedro Ferreira
OK, thanks a lot anyway! I was just wondering if there was already some solution I could reuse. Cheers, Pedro On 03.07.20 17:26, Mike Bayer wrote: > I suppose.  that seems really complicated.    When we use the ORM, we're > defining our domain model in terms of objects, then we define a >

[sqlalchemy] "Virtual models" for JSONB data?

2020-07-03 Thread Pedro Ferreira
Hi, I was wondering if there's some way to create some sort of a "virtual" model which is not based on an actual table? Use case: I have a model (e.g. `Room`) which contains a `data` JSONB attribute/column which is supposed to store plugin-specific data. I would like plugin code to be able to