diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-02-04 17:07:15 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-02-04 18:35:01 -0500 |
commit | 9cbe235810b7c0c24d2556b4bb581b0207812e2d (patch) | |
tree | a842ee456f9d6ce69db3676d19e8428df35acb05 /lib/sqlalchemy/ext/automap.py | |
parent | 9ea19b374630e6ae14cb144942007aa0f8686583 (diff) | |
download | sqlalchemy-9cbe235810b7c0c24d2556b4bb581b0207812e2d.tar.gz |
- A warning is emitted if the ``isolation_level`` parameter is used
with :meth:`.Connection.execution_options` when a :class:`.Transaction`
is in play; DBAPIs and/or SQLAlchemy dialects such as psycopg2,
MySQLdb may implicitly rollback or commit the transaction, or
not change the setting til next transaction, so this is never safe.
- Added new parameter :paramref:`.Session.connection.execution_options`
which may be used to set up execution options on a :class:`.Connection`
when it is first checked out, before the transaction has begun.
This is used to set up options such as isolation level on the
connection before the transaction starts.
- added new documentation section
detailing best practices for setting transaction isolation with
sessions.
fixes #3296
Diffstat (limited to 'lib/sqlalchemy/ext/automap.py')
0 files changed, 0 insertions, 0 deletions