Enum hdbconnect::HdbReturnValue
source · 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 XaTransactionId
s.
Implementations§
source§impl HdbReturnValue
impl HdbReturnValue
sourcepub fn into_resultset(self) -> HdbResult<ResultSet>
pub fn into_resultset(self) -> HdbResult<ResultSet>
Turns itself into a single resultset.
If this cannot be done without loss of information, an error is returned.
sourcepub fn into_affected_rows(self) -> HdbResult<Vec<usize>>
pub fn into_affected_rows(self) -> HdbResult<Vec<usize>>
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.
sourcepub fn into_output_parameters(self) -> HdbResult<OutputParameters>
pub fn into_output_parameters(self) -> HdbResult<OutputParameters>
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.
sourcepub fn into_success(self) -> HdbResult<()>
pub fn into_success(self) -> HdbResult<()>
Turns itself into (), if the statement had returned successfully.
If this cannot be done without loss of information, an error is returned.
sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if the statement had returned successfully.