Re: [sqlalchemy] Returning all columns except two

2019-06-03 Thread Mike Bayer
you would use deferred() on the mapping for this: https://docs.sqlalchemy.org/en/13/orm/loading_columns.html?highlight=deferred#deferred On Mon, Jun 3, 2019, at 8:29 PM, Desmond Lim wrote: > Hi All, > > I have a question which I think I know the answer to but I'd like to confirm. > > I have a

[sqlalchemy] Returning all columns except two

2019-06-03 Thread Desmond Lim
Hi All, I have a question which I think I know the answer to but I'd like to confirm. I have a table/model that when I return the objects or list of objects, I want all the columns (15 of them) to be returned except 2. Is there a way to do that? Currently, I'm doing this (as per documentation) s