| Crates.io | tower-sessions-rusqlite-store |
| lib.rs | tower-sessions-rusqlite-store |
| version | 0.14.0 |
| created_at | 2024-02-15 19:52:58.575121+00 |
| updated_at | 2025-01-22 12:53:46.173862+00 |
| description | (tokio-)rusqlite session store for `tower-sessions`. |
| homepage | https://github.com/patte/tower-sessions-rusqlite-store |
| repository | https://github.com/patte/tower-sessions-rusqlite-store |
| max_upload_size | |
| id | 1141494 |
| size | 51,106 |
(tokio-)rusqlite session store for tower-sessions.
This is a SessionStore for the tower-sessions middleware which uses tokio-rusqlite for handling SQLite databases.
It is directly based on the sqlx-store and uses the same folder structure as tower-session-stores for easy maintenance.
All contributions are welcome!
Check out the counter example. Run it with cargo run --example counter.
This crate is covered by integration- and unit-tests.
The integration tests are copied from tower-session-stores and kept in the tests create. They can be run with cargo nextest run rusqlite_store_tests --test test_integration.
The unit tests are copied from maxcountryman/tower-sessions/memory-store and located directly in src/lib.rs. They can be run with cargo nextest run rusqlite_store_tests -p tower-sessions-rusqlite-store.
Run all tests with: cargo nextest run rusqlite_store_tests.
This is an unofficial fork of the original tower-sessions-stores. I'm relatively new to Rust and might have made stupid mistakes.
Most credits go to the original authors of tower-sessions-stores and tower-sessions.