Merge "types: Set 'cache_ok'"

This commit is contained in:
Zuul 2021-06-25 11:39:41 +00:00 committed by Gerrit Code Review
commit f3bdd4d422
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,8 @@ class JsonEncodedType(TypeDecorator):
type = None
impl = Text
cache_ok = True
"""This type is safe to cache."""
def __init__(self, mysql_as_long=False, mysql_as_medium=False):
"""Initialize JSON-encoding type."""
@ -101,6 +103,8 @@ class SoftDeleteInteger(TypeDecorator):
"""
impl = Integer
cache_ok = True
"""This type is safe to cache."""
def process_bind_param(self, value, dialect):
"""Return the binding parameter."""