Stephen Finucane 1dc20f646b types: Set 'cache_ok'
Resolves the following warning that has been popping up on tests:

  SAWarning: TypeDecorator SoftDeleteInteger() will not produce a cache
  key because the ``cache_ok`` flag is not set to True.  Set this flag
  to True if this type object's state is safe to use in a cache key, or
  False to disable this warning.

Both SoftDeleteInteger and the various subclasses of 'JsonEncodedType'
are hashable and should return a consistent hash and key. For more
information, refer to the SQLAlchemy docs [1].

[1] https://docs.sqlalchemy.org/en/14/core/custom_types.html#sqlalchemy.types.TypeDecorator.cache_ok

Change-Id: Idf6fd858fad9521c7c5ba82c31b6d3077756abd9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-06-22 18:10:46 +01:00
2021-01-03 16:02:16 +08:00
2021-06-22 18:10:46 +01:00
2019-04-19 19:34:34 +00:00
2014-04-18 11:33:16 +03:00
2018-07-13 10:18:54 +07:00
2021-03-18 11:17:53 +00:00
2019-08-09 22:48:06 +00:00
2014-04-18 11:33:16 +03:00
2020-02-25 17:33:41 +00:00
2020-02-10 18:32:50 +01:00
2020-09-22 12:32:18 +02:00
2021-02-19 14:38:30 +08:00

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.

Description
OpenStack Common DB Code
Readme 14 MiB
Languages
Python 99.6%
Shell 0.4%