Skip to main content

Numeric

Trait Numeric 

Source
pub trait Numeric: DataType { }
Expand description

Numeric SQL types: operands of arithmetic (+, -, *, /, %) and numeric functions such as SUM, AVG, ABS and ROUND.

DialectMarkers
SQLiteInteger, Real, Numeric, Any
PostgreSQLInt2, Int4, Int8, Float4, Float8, Numeric
MySQLevery integer marker (signed and unsigned), Year, Float, Double, Decimal

Text, boolean, date and JSON markers are not numeric. The result type of an operation comes from ArithmeticOutput.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§