pub enum ValueType {
Integer,
Numeric,
Float,
Text,
Blob,
Null,
}Expand description
Represents the value type category for type inference and coercion
This enum is used to determine the result type of operations based on the SQL mode’s type system behavior.
Variants§
Integer
Integer type (whole numbers)
Numeric
Exact decimal type (MySQL DECIMAL/NUMERIC)
This represents exact decimal arithmetic with fixed precision. MySQL uses this for division results to preserve precision.
Float
Approximate floating-point type (MySQL FLOAT/DOUBLE, SQLite REAL)
This represents IEEE 754 floating-point numbers with potential rounding errors but better performance for large ranges.
Text
Text/String type
Blob
Binary blob type
Null
NULL value
Trait Implementations§
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more