Trait OutParameters

Source
pub trait OutParameters: Readable {
    // Required method
    fn get_metadata(&self) -> Box<dyn OutParametersMetadata>;
}
Expand description

Represents a set of {@code OUT} parameters returned from a stored procedure. Values from out parameters can be either retrieved by specifying a parameter name or the parameter index. Parameter indexes are {@code 0}-based.

Parameter names used as input to getter methods are case insensitive. When a get method is called with a parameter name and several parameters have the same name, then the value of the first matching parameter will be returned. Parameters that are not explicitly named in the query should be referenced through parameter indexes.

For maximum portability, parameters within each {@link OutParameters} should be read in left-to-right order, and each parameter should be read only once.

[#get(String)] and [#get(int)] without specifying a target type returns a suitable value representation. The R2DBC specification contains a mapping table that shows default mappings between database types and Java types. Specifying a target type, the R2DBC driver attempts to convert the value to the target type.

A parameter is invalidated after consumption.

The number, type and characteristics of parameters are described through OutParametersMetadata.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§