File: sqlalchemy-2.0-c794885886a62fa6.yaml

package info (click to toggle)
python-neutron-lib 3.18.2-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,652 kB
  • sloc: python: 22,800; sh: 145; makefile: 24
file content (13 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
features:
  - |
    To guarantee the correct transition to SQLAlchemy 2.0, Neutron and
    neutron-lib set the SQL engine connection ``autocommit`` parameter to
    "False". Since SQLAlchemy 1.4, this parameter will default to "False";
    in SQLAlchemy 2.0, this will be the only value.
    If session ``autocommit`` is "False", the session transaction will not
    end at the end of a reader/writer context. In this case, a session could
    have an active transaction even when it is not inside a reader/writer
    context. In order to mimic the previous behaviour, this method checks
    the pending new, deleted and dirty elements to be flushed. In case of
    not having any pending command, the session is considered as non active.