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§
- application
- Traits and structs for applications.
- device
- Traits and structs for devices.
- device_
route - Traits and structs for device routes.
- dldata_
buffer - Traits and structs for device routes.
- mongodb_
conn - network
- Traits and structs for networks.
- network_
route - Traits and structs for network routes.
- sqlite_
conn - unit
- Traits and structs for units.
Structs§
- Device
Options - Device
Route Options - Memory
Cache - Pure memory cache.
- Memory
Options - Mongo
DbModel - Pure MongoDB model.
- Mongo
DbOptions - MongoDB connection options.
- Network
Route Options - Sqlite
Model - Pure SQLite model.
- Sqlite
Options - SQLite connection options.
Enums§
- Cache
Conn Options - Database connection options for cache implementation.
- Conn
Options - Database connection options for model implementation.
Traits§
- Cache
- The top level trait to get all caches.
- Model
- The top level trait to get all models (tables/collections).