Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ We contributors to Pavex:
- Ben Wishovich (@benwis)
- Donmai (@donmai-me)
- Leon Qadirie (@leonqadirie)
- Oliver Barnes (@oliverbarnes)
18 changes: 18 additions & 0 deletions libs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion libs/pavex_session_sqlx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ version.workspace = true
[features]
default = []
postgres = ["sqlx/postgres", "jiff-sqlx/postgres"]
sqlite = ["sqlx/sqlite", "sqlx/runtime-tokio-rustls"]

[package.metadata.docs.rs]
all-features = true
Expand All @@ -31,5 +32,8 @@ sqlx = { workspace = true, default-features = true, features = ["uuid"] }
px_workspace_hack = { version = "0.1", path = "../px_workspace_hack" }

[dev-dependencies]
pavex_session_sqlx = { path = ".", features = ["postgres"] }
pavex_session_sqlx = { path = ".", features = ["postgres", "sqlite"] }
pavex_tracing = { path = "../pavex_tracing" }
tokio = { workspace = true, features = ["rt-multi-thread", "time"] }
tempfile = { workspace = true }
uuid = { workspace = true, features = ["v4"] }
10 changes: 10 additions & 0 deletions libs/pavex_session_sqlx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//! There is a dedicated feature flag for each supported database backend:
//!
//! - `postgres`: Support for PostgreSQL.
//! - `sqlite`: Support for SQLite.

#[cfg(feature = "postgres")]
#[cfg_attr(docsrs, doc(cfg(feature = "postgres")))]
Expand All @@ -20,3 +21,12 @@ pub use postgres::PostgresSessionKit;
#[cfg_attr(docsrs, doc(cfg(feature = "postgres")))]
#[doc(inline)]
pub use postgres::PostgresSessionStore;

#[cfg(feature = "sqlite")]
#[cfg_attr(docsrs, doc(cfg(feature = "sqlite")))]
pub mod sqlite;

#[cfg(feature = "sqlite")]
#[cfg_attr(docsrs, doc(cfg(feature = "sqlite")))]
#[doc(inline)]
pub use sqlite::SqliteSessionStore;
Loading
Loading