DataTypeExt

Trait DataTypeExt 

Source
pub trait DataTypeExt {
    // Required methods
    fn name(self) -> &'static str;
    fn accepts_character_data(self) -> bool;
    fn accepts_binary_data(self) -> bool;
    fn accepts_numeric_data(self) -> bool;
    fn accepts_datetime_data(self) -> bool;
}
Available on crate feature odbc only.
Expand description

Extension trait for DataType with helper methods

Required Methods§

Source

fn name(self) -> &'static str

Get the display name for this data type

Source

fn accepts_character_data(self) -> bool

Check if this is a character/string type

Source

fn accepts_binary_data(self) -> bool

Check if this is a binary type

Source

fn accepts_numeric_data(self) -> bool

Check if this is a numeric type

Source

fn accepts_datetime_data(self) -> bool

Check if this is a date/time type

Implementations on Foreign Types§

Source§

impl DataTypeExt for DataType

Implementors§