Crates.io | axum_session_sqlx |
lib.rs | axum_session_sqlx |
version | 0.3.0 |
source | src |
created_at | 2024-04-12 18:40:19.250118 |
updated_at | 2024-08-28 14:21:25.632394 |
description | 📝 Sqlx Persistent Database layer for axum_session |
homepage | |
repository | https://github.com/AscendingCreations/AxumSession |
max_upload_size | |
id | 1206651 |
size | 29,079 |
`axum_session_sqlx` provide's a Persistent SQL Database Storage for Axum Session.
If you need help with this library or have suggestions please go to our Discord Group
Axum Session uses [tokio
].
By Default Axum Session Sqlx uses postgres
and tls-rustls
so if you need tokio native TLS please add default-features = false
to your cargo include for Axum Session Sqlx.
# Cargo.toml
[dependencies]
axum_session = { version = "0.14.0" }
# Postgres + rustls
axum_session_sqlx = { version = "0.1.0", features = [ "postgres", "tls-rustls"] }
You must choose a Database and a tls mode if you disable defaults.
Features | Description |
---|---|
default |
postgres-rustls and tls-rustls |
sqlite |
Enables sqlite usage. |
postgres |
Enables postgres usage. |
mysql |
Enables mysql usage. |
tls-rustls |
Uses rustls for TLS encryption. Must choose one of these. |
tls-native-tls |
Uses native-tls for TLS encryption. Must choose one of these. |
You can locate the example files within the Repository