diesel/type_impls/
decimal.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(dead_code)]

#[cfg(feature = "numeric")]
mod bigdecimal {
    extern crate bigdecimal;
    use self::bigdecimal::BigDecimal;
    use crate::deserialize::FromSqlRow;
    use crate::expression::AsExpression;
    use crate::sql_types::Numeric;

    #[derive(AsExpression, FromSqlRow)]
    #[diesel(foreign_derive)]
    #[diesel(sql_type = Numeric)]
    struct BigDecimalProxy(BigDecimal);
}