pub struct HdbResponse {
pub return_values: Vec<HdbReturnValue>,
// some fields omitted
}
Represents all possible non-error responses to a database command.
Technically, it is a list of single database response values, each of which
can be
- a resultset of a query
- a list of numbers of affected rows
- values of output parameters of a procedure call
- just an indication that a db call was successful
- a list of
XaTransactionId
s
Typically, i.e. in all simple cases, you just have a single database
response value, and can use the respective into_
message to convert the
HdbResponse directly into this single value, whose type is predetermined by
the nature of the database call.
Procedure calls e.g. belong to the more complex cases where the database
response can consist of e.g. multiple result sets. In this case, you need
to evaluate the HdbResponse using the get_
methods.
The return values: Result sets, output parameters, etc.
Returns the number of return values.
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.
Turns itself into a single return value, if there is exactly one.
Returns () if a successful execution was signaled by the database
explicitly, or an error otherwise.
Returns the next ResultSet
, or an error if there is none.
Returns the next ParameterDescriptor
, or an error if there is none.
Returns the next set of affected rows counters, or an error if there is
none.
Returns the next OutputParameters
, or an error if there is none.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static