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