Module sylvia_iot_auth::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 users/clients in MongoDB and put tokens/codes in Redis. Then use a model struct and impl to mix both databases.

Re-exports§

  • pub use self::redis::conn as redis_conn;
  • pub use self::redis::conn::Options as RedisOptions;

Modules§

Structs§

Enums§

  • Database connection options for model implementation.

Traits§

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

Functions§

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