File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 16
16
[ version-badge ] : https://img.shields.io/crates/v/async-sqlx-session.svg?style=flat-square
17
17
18
18
## Installation
19
- ``` sh
20
- $ cargo add async-sqlx-session
19
+ ### sqlite:
20
+
21
+ ``` toml
22
+ async-sqlx-session = { version = " 0.2.0" , features = [" sqlite" ] }
23
+ ```
24
+
25
+ ### postgres:
26
+
27
+ ``` toml
28
+ async-sqlx-session = { version = " 0.2.0" , features = [" pg" ] }
21
29
```
22
30
31
+
32
+
33
+ ## Cargo Features:
34
+
23
35
## Safety
24
36
This crate uses `` #![deny(unsafe_code)] `` to ensure everything is implemented in
25
37
100% Safe Rust.
Original file line number Diff line number Diff line change 1
1
//! # async-sqlx-session
2
2
//!
3
- //! This crate currently only provides a sqlite session store, but
4
- //! will eventually support other databases as well, configurable
5
- //! through a feature flag.
6
- //!
7
- //! For now, see the documentation for
8
- //! [`SqliteStore`](crate::SqliteSessionStore)
3
+ //! This crate currently provides two session stores: [`PostgresSessionStore`] and [`SqliteSessionStore`], each of which is enabled by a feature flag.
4
+ //! To use `SqliteSessionStore`, enable the `sqlite` feature on this crate.
5
+ //! To use `PostgresSessionStore`, enable the `pg` feature on this crate.
9
6
#![ forbid( unsafe_code, future_incompatible) ]
10
7
#![ deny(
11
8
missing_debug_implementations,
You can’t perform that action at this time.
0 commit comments