The oslo_db.sqlalchemy.types
Module¶
-
class
oslo_db.sqlalchemy.types.
JsonEncodedDict
(mysql_as_long=False, mysql_as_medium=False)¶ Bases:
oslo_db.sqlalchemy.types.JsonEncodedType
Represents dict serialized as json-encoded string in db.
Note that this type does NOT track mutations. If you want to update it, you have to assign existing value to a temporary variable, update, then assign back. See this page for more robust work around: http://docs.sqlalchemy.org/en/rel_1_0/orm/extensions/mutable.html
-
type
¶ alias of
dict
-
-
class
oslo_db.sqlalchemy.types.
JsonEncodedList
(mysql_as_long=False, mysql_as_medium=False)¶ Bases:
oslo_db.sqlalchemy.types.JsonEncodedType
Represents list serialized as json-encoded string in db.
Note that this type does NOT track mutations. If you want to update it, you have to assign existing value to a temporary variable, update, then assign back. See this page for more robust work around: http://docs.sqlalchemy.org/en/rel_1_0/orm/extensions/mutable.html
-
type
¶ alias of
list
-
-
class
oslo_db.sqlalchemy.types.
JsonEncodedType
(mysql_as_long=False, mysql_as_medium=False)¶ Bases:
sqlalchemy.sql.type_api.TypeDecorator
Base column type for data serialized as JSON-encoded string in db.
-
impl
¶ alias of
Text
-
process_bind_param
(value, dialect)¶
-
process_result_value
(value, dialect)¶
-
type
= None¶
-