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

2020-07-07 Thread Burak Arslan
On 03/07/2020 16:21, Pedro Ferreira wrote: > 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

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 >

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

2020-07-03 Thread Mike Bayer
On Fri, Jul 3, 2020, at 9:21 AM, Pedro Ferreira wrote: > 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

[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