#[repr(i32)]pub enum OutputMode {
Unspecified = 0,
NoOutput = 1,
ModifiedRecords = 2,
}
Variants§
Unspecified = 0
NoOutput = 1
return no records at all
ModifiedRecords = 2
this mode makes the operator return all the record INSERTED/DELETED/UPDATED by the operator. The operator returns the AFTER-image of any change. This can be further manipulated by operators upstreams (e.g., retunring the typical “count of modified records”). For scenarios in which the BEFORE image is required, the user must implement a spool (via references to subplans in the body of the Rel input) and return those with anounter PlanRel.relations.
Implementations§
Source§impl OutputMode
impl OutputMode
Source§impl OutputMode
impl OutputMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for OutputMode
impl Clone for OutputMode
Source§fn clone(&self) -> OutputMode
fn clone(&self) -> OutputMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more