pub trait Numeric: DataType { }Expand description
Numeric SQL types: operands of arithmetic (+, -, *, /, %) and
numeric functions such as SUM, AVG, ABS and ROUND.
| Dialect | Markers |
|---|---|
| SQLite | Integer, Real, Numeric, Any |
| PostgreSQL | Int2, Int4, Int8, Float4, Float8, Numeric |
| MySQL | every 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".