[][src]Enum hdbconnect::HdbReturnValue

pub enum HdbReturnValue {
    ResultSet(ResultSet),
    AffectedRows(Vec<usize>),
    OutputParameters(OutputParameters),
    Success,
    XaTransactionIds(Vec<XaTransactionId>),
}

An enum that describes a single database return value.

Variants

ResultSet(ResultSet)

A resultset of a query.

AffectedRows(Vec<usize>)

A list of numbers of affected rows.

OutputParameters(OutputParameters)

Values of output parameters of a procedure call.

Success

Indication that a db call was successful.

XaTransactionIds(Vec<XaTransactionId>)

A list of XaTransactionIds.

Implementations

impl HdbReturnValue[src]

pub fn into_resultset(self) -> HdbResult<ResultSet>[src]

Turns itself into a single resultset.

Errors

HdbError::Evaluation for other variants than HdbReturnValue::ResultSet.

pub fn into_affected_rows(self) -> HdbResult<Vec<usize>>[src]

Turns itself into a Vector of numbers (each number representing a number of affected rows).

Errors

HdbError::Evaluation for other variants than HdbReturnValue::AffectedRows.

pub fn into_output_parameters(self) -> HdbResult<OutputParameters>[src]

Turns itself into a Vector of numbers (each number representing a number of affected rows).

Errors

HdbError::Evaluation for other variants than HdbReturnValue::OutputParameters.

pub fn into_success(self) -> HdbResult<()>[src]

Turns itself into (), if the statement had returned successfully.

Errors

HdbError::Evaluation for other variants of HdbReturnValue.

pub fn is_success(&self) -> bool[src]

Returns true if the statement had returned successfully.

Trait Implementations

impl Debug for HdbReturnValue[src]

impl Display for HdbReturnValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,