pub struct WriteRel {
pub table_schema: Option<NamedStruct>,
pub op: i32,
pub input: Option<Box<Rel>>,
pub create_mode: i32,
pub output: i32,
pub common: Option<RelCommon>,
pub advanced_extension: Option<AdvancedExtension>,
pub write_type: Option<WriteType>,
}Expand description
The operator that modifies the content of a database (operates on 1 table at a time, but record-selection/source can be based on joining of multiple tables).
Fields§
§table_schema: Option<NamedStruct>The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
op: i32The type of operation to perform
input: Option<Box<Rel>>The relation that determines the records to add/remove/modify the schema must match with table_schema. Default values must be explicitly stated in a ProjectRel at the top of the input. The match must also occur in case of DELETE to ensure multi-engine plans are unequivocal.
create_mode: i32Used with CTAS to determine what to do if the table already exists
output: i32Output mode determines what is the output of executing this rel
common: Option<RelCommon>§advanced_extension: Option<AdvancedExtension>§write_type: Option<WriteType>Definition of which TABLE we are operating on
Implementations§
Source§impl WriteRel
impl WriteRel
Sourcepub fn op(&self) -> WriteOp
pub fn op(&self) -> WriteOp
Returns the enum value of op, or the default if the field is set to an invalid enum value.
Sourcepub fn output(&self) -> OutputMode
pub fn output(&self) -> OutputMode
Returns the enum value of output, or the default if the field is set to an invalid enum value.
Sourcepub fn set_output(&mut self, value: OutputMode)
pub fn set_output(&mut self, value: OutputMode)
Sets output to the provided enum value.
Sourcepub fn create_mode(&self) -> CreateMode
pub fn create_mode(&self) -> CreateMode
Returns the enum value of create_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_create_mode(&mut self, value: CreateMode)
pub fn set_create_mode(&mut self, value: CreateMode)
Sets create_mode to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for WriteRel
impl<'de> Deserialize<'de> for WriteRel
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for WriteRel
impl Message for WriteRel
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for WriteRel
Auto Trait Implementations§
impl !Freeze for WriteRel
impl RefUnwindSafe for WriteRel
impl Send for WriteRel
impl Sync for WriteRel
impl Unpin for WriteRel
impl UnwindSafe for WriteRel
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)