Enum hdbconnect::HdbReturnValue [−][src]
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 XaTransactionId
s.
Methods
impl HdbReturnValue
[src]
impl HdbReturnValue
pub fn into_resultset(self) -> HdbResult<ResultSet>
[src]
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.
pub fn into_affected_rows(self) -> HdbResult<Vec<usize>>
[src]
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.
pub fn into_output_parameters(self) -> HdbResult<OutputParameters>
[src]
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.
pub fn into_success(self) -> HdbResult<()>
[src]
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.
pub fn is_success(&self) -> bool
[src]
pub fn is_success(&self) -> bool
Returns true if the statement had returned successfully.
Trait Implementations
impl Debug for HdbReturnValue
[src]
impl Debug for HdbReturnValue
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for HdbReturnValue
[src]
impl Display for HdbReturnValue
Auto Trait Implementations
impl Send for HdbReturnValue
impl Send for HdbReturnValue
impl !Sync for HdbReturnValue
impl !Sync for HdbReturnValue