#tower-sessions #tower #rusqlite #session #axum #cookies

tower-sessions-rusqlite-store

(tokio-)rusqlite session store for tower-sessions

5 releases (3 breaking)

0.13.0 Oct 1, 2024
0.12.0 Mar 21, 2024
0.11.1 Mar 18, 2024
0.11.1-2 Mar 19, 2024
0.1.0 Feb 15, 2024

#456 in Asynchronous

Download history 43/week @ 2024-08-24 11/week @ 2024-08-31 34/week @ 2024-09-07 21/week @ 2024-09-14 128/week @ 2024-09-21 180/week @ 2024-09-28 103/week @ 2024-10-05 15/week @ 2024-10-12 40/week @ 2024-10-26 7/week @ 2024-11-02 14/week @ 2024-11-09 1/week @ 2024-11-16 61/week @ 2024-11-30

76 downloads per month

MIT license

18KB
335 lines

tower-sessions-rusqlite-store

(tokio-)rusqlite session store for tower-sessions.

tests crates.io codecov

Overview

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!

๐Ÿคธ Usage

Check out the counter example. Run it with cargo run --example counter.

๐Ÿงช Tests

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.

๐Ÿฆบ Disclaimer

This is an unofficial fork of the original tower-sessions-stores. I'm relatively new to Rust and might have made stupid mistakes.

๐Ÿ™ Credits

Most credits go to the original authors of tower-sessions-stores and tower-sessions.

Dependencies

~35MB
~576K SLoC