On Jan 24, 2011, at 5:46 AM, bool wrote:
> Thanks a lot for bearing with me.
>
>
>>> explicit execution - uses a Connection, but will autocommit ....
>>> conn = engine.connect()
>>> conn.execute("insert into table (a, b, c) values (1, 2, 3)")
>
>
> I still want a clarification about the above case. When we use
> explicit execution like the above, will each conn.execute() statement
> be in a transaction or not?
Everything is "in a transaction". The above transaction autocommits upon each
INSERT/UPDATE/DELETE statement.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sqlalchemy?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.