Re: [sqlalchemy] Session.query vs Session().query when session is a scoped_session

2021-02-27 Thread Mike Bayer
There's no difference, but for the best patterns i would instantiate the Session before using it. Modern Session usage in the upcoming 1.4.0 release looks like what you see at https://docs.sqlalchemy.org/en/14/orm/session_basics.html#opening-and-closing-a-session On Sat, Feb 27, 2021, at 1:31

[sqlalchemy] Session.query vs Session().query when session is a scoped_session

2021-02-26 Thread M
Hello, I would like your opinion regarding this stackoverflow question I would like to know if the selected answer is correct/accurate. Is there no difference between Session.query vs