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§
Modules§
- Traits and structs for access tokens.
- Traits and structs for authorization codes.
- Traits, enumerations and structs for clients.
- Traits and structs for authorization codes.
- Redis model implementation.
- Traits and structs for refresh tokens.
- Traits, enumerations and structs for users.
Structs§
- Pure MongoDB model.
- MongoDB connection options.
- Pure SQLite model.
- SQLite connection options.
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.