Enum arrow_odbc::ColumnFailure
source · [−]pub enum ColumnFailure {
ZeroSizedColumn {
sql_type: OdbcDataType,
},
UnknownStringLength {
sql_type: OdbcDataType,
source: Error,
},
UnsupportedArrowType(ArrowDataType),
FailedToDescribeColumn(Error),
}
Variants
ZeroSizedColumn
Fields
sql_type: OdbcDataType
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(ArrowDataType)
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.
Implementations
sourceimpl 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
sourceimpl Debug for ColumnFailure
impl Debug for ColumnFailure
sourceimpl Display for ColumnFailure
impl Display for ColumnFailure
sourceimpl Error for ColumnFailure
impl Error for ColumnFailure
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for ColumnFailure
impl Send for ColumnFailure
impl Sync for ColumnFailure
impl Unpin for ColumnFailure
impl !UnwindSafe for ColumnFailure
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more