autocommitting select() / text() statements
Issue #915
resolved
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)
-
-
reporter - changed status to resolved
autocommit it is - e1aa7573f210f76e2ddf8e45fc18007e11e5bbef
-
reporter - removed milestone
Removing milestone: 0.4.3 (automated comment)
- Log in to comment
how about
autocommit=True
.should_commit
implies a bigger scope to me...