On Thu, Jan 12, 2023, at 1:46 PM, mkmo...@gmail.com wrote:
> Hi Mike,
>
> Thanks. I have a few cases where it is easiest if I have a plain dict instead
> of a RowMapping. For example RowMapping is immutable, and isn't playing
> nicely with my json encoder.
>
> What is your preferred method
Hi Mike,
Thanks. I have a few cases where it is easiest if I have a plain dict
instead of a RowMapping. For example RowMapping is immutable, and isn't
playing nicely with my json encoder.
What is your preferred method to convert to a plain dict?
Row._asdict()
dict(RowMapping.items())
--
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
if you have a select() construct, you can add new AND things just calling
.where() again. e.g. existing_statement.where(or_(f1, f2)) .
On Wed, Jan 11, 2023, at 11:26 PM, Val Huber wrote:
> I am using this and it is working well to AND a series of filters to a
> statement.
>
> But I do not
it means the Session is in the middle of the "flush()" method. it's a boolean
state. when flush() is over, it turns back off.
On Wed, Jan 11, 2023, at 9:27 PM, Val Huber wrote:
> Sounds like *session._flushing* is exactly what I want… presuming it means “I
> have started flushing, in fact may