#[non_exhaustive]
#[repr(i8)]
pub enum SqlType {
Int,
Real,
String,
Decimal,
}Expand description
Enum representing possible SQL result types
This simply represents the possible types, but does not contain any values.
SqlResult is the corresponding enum that actually contains data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl SqlType
impl SqlType
sourcepub fn to_item_result(&self) -> Item_result
pub fn to_item_result(&self) -> Item_result
Convert this enum to a SQL Item_result. This is only useful if you
work with udf_sys bindings directly.
sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Small helper function to get a displayable type name.