sylvia_iot_broker

Module models

Source
Expand description

Traits and implementations for accessing databases and caches.

Currently we only provide pure MongoDB/SQLite implementation. Mixing implementation is possible. For example, put units/devices in MongoDB and put routes in Redis. Then use a model struct and impl to mix both databases.

Modules§

Structs§

Enums§

Traits§

  • The top level trait to get all caches.
  • The top level trait to get all models (tables/collections).

Functions§

  • To create the database model with the specified database implementation.
  • To create the database cache with the specified database implementation.