Thanks very much for the informative reply Mike!
On Sun, Aug 6, 2017 at 9:38 PM, Mike Bayer wrote:
>
>
> On Aug 6, 2017 8:11 PM, "Jinghui Niu" wrote:
>
> When reading the official SQLAlchemy documentation, I found the example
> below:
>
> ###
On Aug 6, 2017 8:11 PM, "Jinghui Niu" wrote:
When reading the official SQLAlchemy documentation, I found the example
below:
### this is the **wrong way to do it** ###
class ThingOne(object):
def go(self):
session = Session()
try:
When reading the official SQLAlchemy documentation, I found the example
below:
### this is the **wrong way to do it** ###
class ThingOne(object):
def go(self):
session = Session()
try:
session.query(FooBar).update({"x": 5})
session.commit()