autocommitting select() / text() statements

Issue #915 resolved
Mike Bayer repo owner created an issue

we should think of a way to tag certain SQL as requiring an autocommit if no transaction is in progress. its a "defect" because right now, theres no way to trigger an autocommit arbitrarily. Heres an idea:

t = text("select my_special_func()", should_commit=True)

t = text("select my_special_func()").should_commit()

s = select([func.my_special_func()](func.my_special_func()), should_commit=True)

s = select([func.my_special_func()](func.my_special_func())).should_commit()

comments ?

Comments (3)

  1. Log in to comment