async-sqlx-session

Crates.ioasync-sqlx-session
lib.rsasync-sqlx-session
version0.4.0
sourcesrc
created_at2020-07-26 20:17:21.832184
updated_at2021-06-01 21:35:19.342075
descriptionsqlx session store for async-session
homepage
repositoryhttps://github.com/jbr/async-sqlx-session
max_upload_size
id269855
size73,680
Jacob Rothstein (jbr)

documentation

https://docs.rs/async-sqlx-session

README

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.
Commit count: 63

cargo fmt