Enum arrow_odbc::ColumnFailure
source · pub enum ColumnFailure {
ZeroSizedColumn {
sql_type: DataType,
},
UnknownStringLength {
sql_type: DataType,
source: Error,
},
UnsupportedArrowType(DataType),
FailedToDescribeColumn(Error),
TooLarge {
num_elements: usize,
element_size: usize,
},
}
Expand description
Read error related to a specific column
Variants§
ZeroSizedColumn
We are getting a display or column size from ODBC but it is not larger than 0.
UnknownStringLength
Unable to retrieve the column display size for the column.
UnsupportedArrowType(DataType)
The type specified in the arrow schema is not supported to be fetched from the database.
FailedToDescribeColumn(Error)
At ODBC api calls gaining information about the columns did fail.
TooLarge
Implementations§
source§impl ColumnFailure
impl ColumnFailure
sourcepub fn into_crate_error(self, name: String, index: usize) -> Error
pub fn into_crate_error(self, name: String, index: usize) -> Error
Provides the error with additional context of Error with column name and index.
Trait Implementations§
source§impl Debug for ColumnFailure
impl Debug for ColumnFailure
source§impl Display for ColumnFailure
impl Display for ColumnFailure
source§impl Error for ColumnFailure
impl Error for ColumnFailure
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ColumnFailure
impl !RefUnwindSafe for ColumnFailure
impl Send for ColumnFailure
impl Sync for ColumnFailure
impl Unpin for ColumnFailure
impl !UnwindSafe for ColumnFailure
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