apalis_sql/lib.rs
1use apalis_core::backend::StatType;
2
3pub mod config;
4pub mod context;
5pub mod from_row;
6
7pub fn stat_type_from_string(s: &str) -> StatType {
8 match s {
9 "Number" => StatType::Number,
10 "Decimal" => StatType::Decimal,
11 "Percentage" => StatType::Percentage,
12 "Timestamp" => StatType::Timestamp,
13 _ => StatType::Number,
14 }
15}