5 releases (3 breaking)

new 0.4.0 Jan 1, 2025
0.3.0 Aug 28, 2024
0.2.0 Aug 2, 2024
0.1.1 Jul 16, 2024
0.1.0 Apr 12, 2024

#1213 in Database interfaces

Download history 212/week @ 2024-09-18 266/week @ 2024-09-25 318/week @ 2024-10-02 185/week @ 2024-10-09 281/week @ 2024-10-16 147/week @ 2024-10-23 311/week @ 2024-10-30 297/week @ 2024-11-06 255/week @ 2024-11-13 280/week @ 2024-11-20 252/week @ 2024-11-27 161/week @ 2024-12-04 125/week @ 2024-12-11 71/week @ 2024-12-18 69/week @ 2024-12-25 358/week @ 2025-01-01

653 downloads per month
Used in huxi-server

MIT/Apache

175KB
3K SLoC

Axum Session Sqlx

https://crates.io/crates/axum_session_sqlx Docs Discord Server

📑 Overview

`axum_session_sqlx` provide's a Persistent SQL Database Storage for Axum Session.

🚨 Help

If you need help with this library or have suggestions please go to our Discord Group

📦 Install

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.15.0" }
# Postgres + rustls
axum_session_sqlx = { version = "0.4.0", features = [ "postgres", "tls-rustls"] }

📱 Cargo Feature Flags

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.

🔎 Examples

You can locate the example files within the Repository

Dependencies

~54MB
~1M SLoC