Merge "types: Set 'cache_ok'"
This commit is contained in:
commit
f3bdd4d422
@ -21,6 +21,8 @@ class JsonEncodedType(TypeDecorator):
|
|||||||
|
|
||||||
type = None
|
type = None
|
||||||
impl = Text
|
impl = Text
|
||||||
|
cache_ok = True
|
||||||
|
"""This type is safe to cache."""
|
||||||
|
|
||||||
def __init__(self, mysql_as_long=False, mysql_as_medium=False):
|
def __init__(self, mysql_as_long=False, mysql_as_medium=False):
|
||||||
"""Initialize JSON-encoding type."""
|
"""Initialize JSON-encoding type."""
|
||||||
@ -101,6 +103,8 @@ class SoftDeleteInteger(TypeDecorator):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
impl = Integer
|
impl = Integer
|
||||||
|
cache_ok = True
|
||||||
|
"""This type is safe to cache."""
|
||||||
|
|
||||||
def process_bind_param(self, value, dialect):
|
def process_bind_param(self, value, dialect):
|
||||||
"""Return the binding parameter."""
|
"""Return the binding parameter."""
|
||||||
|
Loading…
Reference in New Issue
Block a user