6 releases (3 breaking)

0.4.0 Jun 1, 2021
0.3.0 Feb 3, 2021
0.2.1 Nov 6, 2020
0.2.0 Aug 3, 2020
0.1.1 Jul 26, 2020

#2294 in Database interfaces

Download history 189/week @ 2024-03-11 83/week @ 2024-03-18 148/week @ 2024-03-25 95/week @ 2024-04-01 97/week @ 2024-04-08 75/week @ 2024-04-15 51/week @ 2024-04-22 24/week @ 2024-04-29 45/week @ 2024-05-06 78/week @ 2024-05-13 67/week @ 2024-05-20 17/week @ 2024-05-27 32/week @ 2024-06-03 22/week @ 2024-06-10 24/week @ 2024-06-17 31/week @ 2024-06-24

111 downloads per month

MIT/Apache

64KB
871 lines

async-sqlx-session

sqlx-backed session store for async-session

Installation

sqlite:

async-sqlx-session = { version = "0.4.0", features = ["sqlite"] }

postgres:

async-sqlx-session = { version = "0.4.0", features = ["pg"] }

mysql:

async-sqlx-session = { version = "0.4.0", features = ["mysql"] }

Optional async_std feature

To use the spawn_cleanup_task function on the async-std runtime, enable the async_std feature, which can be combined with any of the above datastores.

async-sqlx-session = { version = "0.4.0", features = ["pg", "async_std"] }

Cargo Features:

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~13–30MB
~524K SLoC