add mysql support
This commit is contained in:
parent
ac0ac8a10d
commit
966373b8fa
@ -11,7 +11,7 @@ config = "0.14.0"
|
|||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
reqwest = { version = "0.12.4", features = ["json", "rustls-tls"], default-features = false }
|
reqwest = { version = "0.12.4", features = ["json", "rustls-tls"], default-features = false }
|
||||||
rumqttc = "0.24.0"
|
rumqttc = "0.24.0"
|
||||||
sea-orm = { workspace = true, features = [ "with-time", "sqlx-sqlite", "sqlx-postgres", "runtime-tokio-rustls", "macros" ] }
|
sea-orm = { workspace = true, features = [ "with-time", "sqlx-sqlite", "sqlx-postgres", "sqlx-mysql", "runtime-tokio-rustls", "macros" ] }
|
||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
serde_json = "1.0.116"
|
serde_json = "1.0.116"
|
||||||
thiserror = "1.0.59"
|
thiserror = "1.0.59"
|
||||||
|
@ -4,10 +4,10 @@ use thiserror::Error;
|
|||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
#[error("opds error")]
|
#[error("opds error")]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// Error rendering OPDS.
|
/// Database Error
|
||||||
#[error("opds error")]
|
#[error("opds error")]
|
||||||
DbError(#[from] DbErr),
|
DbError(#[from] DbErr),
|
||||||
/// Error fetching data from calibre.
|
/// Error fetching data from alertswiss
|
||||||
#[error("data error")]
|
#[error("data error")]
|
||||||
FetchError(#[from] reqwest::Error),
|
FetchError(#[from] reqwest::Error),
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ async fn main() {
|
|||||||
let config = args.into();
|
let config = args.into();
|
||||||
|
|
||||||
if let Err(e) = alert_me::run(config).await {
|
if let Err(e) = alert_me::run(config).await {
|
||||||
error!("Application error: {e}");
|
error!("Application error: {e:?}");
|
||||||
process::exit(1);
|
process::exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user