Enum odbc_api::handles::SqlResult [−][src]
pub enum SqlResult<T> {
Success(T),
SuccessWithInfo(T),
Error {
function: &'static str,
},
}
Expand description
Result of an ODBC function call. Variants hold the same meaning as the constants associated with
SqlReturn
. This type may hold results, but it is still the responsibility of the user to
fetch and handle the diagnostics in case of an Error.
Variants
The function has been executed successfully.
The function has been executed successfully. There have been warnings.
Function returned error state. Check diagnostics.
Fields of Error
function: &'static str
Name of the ODBC Api call which caused the error. This might help interpreting associatedif the error ODBC diagnostics if the error is bubbeld all the way up to the end users output, but the context is lost.
Implementations
Append a return value a successful to Result
Logs diagonstics of handle
if variant is either Error
or SuccessWithInfo
.
True
if variant is SqlResult::Error
.
Applies f
to any value wrapped in Success
or SuccessWithInfo
.