[][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.

Methods

impl HdbReturnValue[src]

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

Turns itself into a single resultset.

If this cannot be done without loss of information, an error is returned.

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).

If this cannot be done without loss of information, an error is returned.

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

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

If this cannot be done without loss of information, an error is returned.

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

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

If this cannot be done without loss of information, an error is returned.

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, U> Into for T where
    U: From<T>, 
[src]

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

impl<T> From for T[src]

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

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

impl<T> Same for T

type Output = T

Should always be Self