Files
watcher/watcher
Takashi Kajinami d6f169197e SQLAlchemy 2.0: Omnibus fixes patch
This was originally five patches, but they are all needed to pass
any of the test jobs now, so they have been squashed into one:

Co-Authored-By: Dan Smith (dms@danplanet.com)

First:

The autoload argument was removed[1] in SQLAlchemy and only
the autoload_with argument should be passed.

The autoload argument is set according to the autoload_with argument
automatically even in SQLAlchemy 1.x[2] so is not at all needed.

[1] c932123bac
[2] ad8f921e96

Second:

Remove _warn_on_bytestring for newer SA, AFAICT, this flag has been
removed from SQLAlchemy and that is why watcher-db-manage fails to
initialize the DB for me on jammy. This migration was passing the
default value (=False) anyway, so I assume this is the right "fix".

Third:

Fix joinedload passing string attribute names

Fourth:

Fix engine.select pattern to use begin() per the migration guide.

Fifth:

Override the apscheduler get_next_run_time() which appears to be
trivially not compatible with SQLAlchemy 2.0 because of a return type
from scalar().

Change-Id: I000e5e78f97f82ed4ea64d42f1c38354c3252e08
2024-05-29 06:49:32 -07:00
..
2021-07-09 11:02:36 +02:00
2023-12-11 10:21:33 +00:00
2023-12-11 10:21:33 +00:00
2023-12-11 10:21:33 +00:00
2024-05-29 06:49:32 -07:00
2023-12-11 10:21:33 +00:00
2020-10-12 05:41:00 +00:00
2022-08-29 04:12:15 +00:00
2020-04-16 16:00:37 +08:00
2020-04-22 15:59:15 +08:00
2023-12-11 10:21:33 +00:00
2017-01-11 15:23:06 +05:30
2017-06-08 09:48:26 +07:00