This crate allows you to use your postgres/sqlite database as a state and crypto store for matrix-sdk.
rustls
: Enables the rustls TLS backend in sqlx and matrix-sdknative-tls
: Enables the native-tls TLS backend in sqlx and matrix-sdk (enabled by default)postgres
: Enables support for postgres databases (enabled by default)sqlite
: Enables support for sqlite databasese2e-encryption
Enables the CryptoStoreExactly one of rustls
and native-tls
need to be enabled. At least one of postgres
or sqlite
must be enabled.
The MSRV is currently 1.60.0.
Increasing the MSRV is a breaking change.
This crate integrates with your existing SQLx database pool.
```rust
let sqlpool: Arc
```
After that you can pass it into your client builder as follows:
```rust let storeconfig = StoreConfig::new().statestore(Box::new(state_store));
let clientbuilder = Client::builder() /* ... */ .storeconfig(store_config) ```
This project is licensed under the Apache-2.0 License - see the LICENSE.md file for details
Charlotte |