The oslo_db.sqlalchemy.types
Module¶
-
class
oslo_db.sqlalchemy.types.
JsonEncodedDict
(*args, **kwargs)¶ 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
(*args, **kwargs)¶ 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
-