Skip to content

Storage

Storage backends for Thing instances.

When properties are written, their values can be dispatched to store them in different storage backends. Whenever the Thing instance is reinitialized, these stored values can be reloaded. This helps to backup running configuration and survive those values in case of power-cycles or crashes.

A storage backend implements the BaseConfigurationRepository.

backend registered name Thing flag extra needs a server
JSONFileStorage json_file use_json_file — no
SQLAlchemyDB sqlalchemy use_default_db sqlalchemy, postgresql SQLite no, others yes
MongoDB mongo use_mongo_db mongo yes