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

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§

Turns itself into a single resultset.

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

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.

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.

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

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

Returns true if the statement had returned successfully.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
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.