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§
- Traits and structs for applications.
- Traits and structs for devices.
- Traits and structs for device routes.
- Traits and structs for device routes.
- Traits and structs for networks.
- Traits and structs for network routes.
- Traits and structs for units.
Structs§
- Pure memory cache.
- Pure MongoDB model.
- MongoDB connection options.
- Pure SQLite model.
- SQLite connection options.
Enums§
- Database connection options for cache implementation.
- Database connection options for model implementation.
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.