OpenStack Common DB Code
Go to file
Stephen Finucane 1f003bcb0b Get test suite to full pass with SQLAlchemy 2.0
Remaining issues encountered when running with SQLAlchemy 2.0 for real:

* Never call str() on a URL and expect it to be meaningful anymore.
  The password is aggressively obfuscated now (users absolultely
  wouldn't let us leave it as is)
* More utilities and fixtures that were calling begin() within a
  block that would have already begun
* isnot is now called is_not; mocking "isnot" leads into too many
  weird compat layers
* ORM InstrumentedAttribute and internals use __slots__ now, mock
  seems to not be able to patch methods.  Ideally these tests would use
  a comparator subclass or something
* Connection.connection.connection is now called driver_connection,
  SQLAlchemy keeps the old name available however oslo.db test suite
  does not appear to tolerate the deprecation warning emitted,
  so add a compat layer
* mapper() is fully removed from 2.0, not sure if there is another
  not-yet-committed gerrit that removes mapper()

[1] https://docs.sqlalchemy.org/en/20/core/engines.html#sqlalchemy.create_engine.params.pool_pre_ping
[2] https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2fe37eaf2295cebd3bb4ee8e5b8c575c
[3] https://github.com/sqlalchemy/sqlalchemy/issues/5648

Change-Id: Ifaca67c07f008d8bc0febeecd3e200cc7ee7a4b0
2023-04-06 14:54:40 +01:00
doc Remove legacy calling style of select() 2021-07-29 16:37:44 +01:00
oslo_db Get test suite to full pass with SQLAlchemy 2.0 2023-04-06 14:54:40 +01:00
releasenotes Get test suite to full pass with SQLAlchemy 2.0 2023-04-06 14:54:40 +01:00
tools tox: Simplify test running 2021-07-16 13:01:45 +01:00
.coveragerc Fix coverage configuration and execution 2015-10-08 17:29:42 -04:00
.gitignore Merge "gitignore: Add reno artefacts" 2020-02-17 17:02:05 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:34:34 +00:00
.mailmap Fix the graduate.sh script result 2014-04-18 11:33:16 +03:00
.pre-commit-config.yaml update the pre-commit-hooks version 2021-05-18 03:05:44 +00:00
.stestr.conf Switch to stestr 2018-07-13 10:18:54 +07:00
.zuul.yaml Add Python3 antelope unit tests 2022-10-13 11:19:28 +00:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:22:54 +02:00
HACKING.rst Update URLs according to document migration 2017-07-11 22:28:01 +08:00
LICENSE Fix the graduate.sh script result 2014-04-18 11:33:16 +03:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-23 05:29:23 +00:00
bindep.txt Add libpq-dev to bindep.txt 2019-08-09 22:48:06 +00:00
requirements.txt Remove sqlalchemy-migrate 2023-03-21 13:59:26 -04:00
setup.cfg Remove sqlalchemy-migrate 2023-03-21 13:59:26 -04:00
setup.py remove outdated header 2020-02-10 18:32:50 +01:00
test-requirements.txt Adding pre-commit 2020-09-22 12:32:18 +02:00
tox.ini Add option for wsrep_sync_wait 2022-12-05 11:49:14 -05:00

README.rst

Team and repository tags

image

oslo.db -- OpenStack Database Pattern Library

Latest Version

Downloads

The oslo db (database) handling library, provides database connectivity to different database backends and various other helper utils.