Struct diesel::sql_types::Numeric [−][src]
The arbitrary precision numeric SQL type.
This type is only supported on PostgreSQL and MySQL.
On SQLite, Double
should be used instead.
ToSql
impls
bigdecimal::BigDecimal
withfeature = ["numeric"]
FromSql
impls
bigdecimal::BigDecimal
withfeature = ["numeric"]
Trait Implementations
impl Foldable for Numeric
[src]
impl Foldable for Numeric
type Sum = Nullable<Numeric>
The SQL type of sum(this_type)
type Avg = Nullable<Numeric>
The SQL type of avg(this_type)
impl Add for Numeric
[src]
impl Add for Numeric
type Rhs = Numeric
The SQL type which can be added to this one
type Output = Numeric
The SQL type of the result of adding Rhs
to Self
impl Sub for Numeric
[src]
impl Sub for Numeric
type Rhs = Numeric
The SQL type which can be subtracted from this one
type Output = Numeric
The SQL type of the result of subtracting Rhs
from Self
impl Mul for Numeric
[src]
impl Mul for Numeric
type Rhs = Numeric
The SQL type which this can be multiplied by
type Output = Numeric
The SQL type of the result of multiplying Self
by Rhs
impl Div for Numeric
[src]
impl Div for Numeric
type Rhs = Numeric
The SQL type which this one can be divided by
type Output = Numeric
The SQL type of the result of dividing Self
by Rhs
impl QueryId for Numeric
[src]
[+]
impl QueryId for Numeric
impl NotNull for Numeric
[src]
impl NotNull for Numeric
impl SingleValue for Numeric
[src]
impl SingleValue for Numeric
impl HasSqlType<Numeric> for Sqlite
[src]
[+]
impl HasSqlType<Numeric> for Sqlite
impl HasSqlType<Numeric> for Mysql
[src]
[+]
impl HasSqlType<Numeric> for Mysql
impl HasSqlType<Numeric> for Pg
[src]
[+]
impl HasSqlType<Numeric> for Pg
impl Debug for Numeric
[src]
[+]
impl Debug for Numeric
impl Clone for Numeric
[src]
[+]
impl Clone for Numeric
impl Copy for Numeric
[src]
impl Copy for Numeric
impl Default for Numeric
[src]
[+]
impl Default for Numeric
impl<'expr> AsExpression<Numeric> for &'expr PgNumeric
[src]
[+]
impl<'expr> AsExpression<Numeric> for &'expr PgNumeric
impl<'expr2, 'expr> AsExpression<Numeric> for &'expr2 &'expr PgNumeric
[src]
[+]
impl<'expr2, 'expr> AsExpression<Numeric> for &'expr2 &'expr PgNumeric
impl AsExpression<Numeric> for PgNumeric
[src]
[+]
impl AsExpression<Numeric> for PgNumeric
impl FromSql<Numeric, Pg> for PgNumeric
[src]
[+]
impl FromSql<Numeric, Pg> for PgNumeric
impl ToSql<Numeric, Pg> for PgNumeric
[src]
[+]
impl ToSql<Numeric, Pg> for PgNumeric