Struct diesel::sql_types::Numeric[][src]

pub struct Numeric;

The arbitrary precision numeric SQL type.

This type is only supported on PostgreSQL and MySQL. On SQLite, Double should be used instead.

ToSql impls

FromSql impls

Trait Implementations

impl Foldable for Numeric
[src]

The SQL type of sum(this_type)

The SQL type of avg(this_type)

impl Add for Numeric
[src]

The SQL type which can be added to this one

The SQL type of the result of adding Rhs to Self

impl Sub for Numeric
[src]

The SQL type which can be subtracted from this one

The SQL type of the result of subtracting Rhs from Self

impl Mul for Numeric
[src]

The SQL type which this can be multiplied by

The SQL type of the result of multiplying Self by Rhs

impl Div for Numeric
[src]

The SQL type which this one can be divided by

The SQL type of the result of dividing Self by Rhs

impl QueryId for Numeric
[src]

A type which uniquely represents Self in a SQL query. Read more

HAS_STATIC_QUERY_ID: bool = true

Can the SQL generated by Self be uniquely identified by its type? Read more

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more

impl NotNull for Numeric
[src]

impl SingleValue for Numeric
[src]

impl HasSqlType<Numeric> for Sqlite
[src]

Fetch the metadata for the given type Read more

impl HasSqlType<Numeric> for Mysql
[src]

Fetch the metadata for the given type Read more

impl HasSqlType<Numeric> for Pg
[src]

Fetch the metadata for the given type Read more

impl Debug for Numeric
[src]

Formats the value using the given formatter. Read more

impl Clone for Numeric
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Numeric
[src]

impl Default for Numeric
[src]

Returns the "default value" for a type. Read more

impl ToSql<Numeric, Mysql> for BigDecimal
[src]

See the trait documentation.

impl FromSql<Numeric, Mysql> for BigDecimal
[src]

See the trait documentation.

impl<'expr> AsExpression<Numeric> for &'expr PgNumeric
[src]

The expression being returned

Perform the conversion

impl<'expr2, 'expr> AsExpression<Numeric> for &'expr2 &'expr PgNumeric
[src]

The expression being returned

Perform the conversion

impl AsExpression<Numeric> for PgNumeric
[src]

The expression being returned

Perform the conversion

impl FromSql<Numeric, Pg> for PgNumeric
[src]

See the trait documentation.

impl ToSql<Numeric, Pg> for PgNumeric
[src]

See the trait documentation.

impl ToSql<Numeric, Pg> for BigDecimal
[src]

See the trait documentation.

impl FromSql<Numeric, Pg> for BigDecimal
[src]

See the trait documentation.

impl FromSql<Numeric, Sqlite> for BigDecimal
[src]

See the trait documentation.

impl<'expr> AsExpression<Numeric> for &'expr BigDecimal
[src]

The expression being returned

Perform the conversion

impl<'expr2, 'expr> AsExpression<Numeric> for &'expr2 &'expr BigDecimal
[src]

The expression being returned

Perform the conversion

impl AsExpression<Numeric> for BigDecimal
[src]

The expression being returned

Perform the conversion

Auto Trait Implementations

impl Send for Numeric

impl Sync for Numeric