Enum arrow_odbc::Error[][src]

pub enum Error {
    UnsupportedArrowType(ArrowDataType),
    FailedToDescribeColumn(Error),
    UnknownStringLength {
        sql_type: OdbcDataType,
        source: Error,
    },
    InvalidDisplaySize(isize),
    UnableToRetrieveNumCols(Error),
}
Expand description

A variation of things which can go wrong then creating an OdbcReader.

Variants

UnsupportedArrowType(ArrowDataType)

The type specified in the arrow schema is not supported to be fetched from the database.

Tuple Fields of UnsupportedArrowType

0: ArrowDataType
FailedToDescribeColumn(Error)

At ODBC api calls gaining information about the columns did fail.

Tuple Fields of FailedToDescribeColumn

0: Error
UnknownStringLength

Unable to retrieve the column display size for the column.

Fields of UnknownStringLength

sql_type: OdbcDataTypesource: Error
InvalidDisplaySize(isize)

We are getting a display or octet size from ODBC but it is not larger than 0.

Tuple Fields of InvalidDisplaySize

0: isize
UnableToRetrieveNumCols(Error)

Failure to retrieve the number of columns from the result set.

Tuple Fields of UnableToRetrieveNumCols

0: Error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.