async-sea-orm-session
An async-session backend implemented using sea-orm, heavily inspired by async-sqlx-session.
More information can be found in the crate documentation.
Basic usage
In the following example we create a DatabaseSessionStore, which implements
the SessionStore trait from async-session.
use Migrator;
use DatabaseSessionStore;
use ;
use MigratorTrait;
async
Examples
There are full examples in the examples directory of the repository.
-
axum-example
This example combines the axum web application framework with
async-sea-orm-sessionfor session storage and tower-cookies for cookie management.
Feel free to contribute examples showing different setups!
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.