Stephen Finucane 17a6c571dc db: Don't rely on autocommit behavior
Resolve the following RemovedIn20Warning warning:

  The current statement is being autocommitted using implicit
  autocommit, which will be removed in SQLAlchemy 2.0. Use the .begin()
  method of Engine or Connection in order to use an explicit transaction
  for DML and DDL statements.

There's only a single case of this, though we take the opportunity to
remove some unnecessary contextlib.closing calls: the Connection object
already supports being called as a context manager.

Change-Id: Ic8594773acbc3ff52469d6585d348076d13da67e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-07-14 14:16:33 +01:00
..
2022-05-18 16:12:37 +09:00
2022-05-18 16:12:37 +09:00
2022-05-18 16:12:37 +09:00
2022-05-18 16:12:37 +09:00
2022-05-18 16:12:37 +09:00
2014-02-22 17:16:29 +08:00
2022-06-13 16:32:31 +00:00
2022-05-18 16:12:37 +09:00
2022-05-18 16:12:37 +09:00
2019-10-18 18:11:44 -07:00
2020-06-02 21:00:56 +02:00
2022-05-18 16:12:37 +09:00
2022-05-18 16:12:37 +09:00
2022-05-18 16:12:37 +09:00