Struct pg_query::protobuf::SelectStmt
source · pub struct SelectStmt {Show 20 fields
pub distinct_clause: Vec<Node>,
pub into_clause: Option<Box<IntoClause>>,
pub target_list: Vec<Node>,
pub from_clause: Vec<Node>,
pub where_clause: Option<Box<Node>>,
pub group_clause: Vec<Node>,
pub group_distinct: bool,
pub having_clause: Option<Box<Node>>,
pub window_clause: Vec<Node>,
pub values_lists: Vec<Node>,
pub sort_clause: Vec<Node>,
pub limit_offset: Option<Box<Node>>,
pub limit_count: Option<Box<Node>>,
pub limit_option: i32,
pub locking_clause: Vec<Node>,
pub with_clause: Option<WithClause>,
pub op: i32,
pub all: bool,
pub larg: Option<Box<SelectStmt>>,
pub rarg: Option<Box<SelectStmt>>,
}
Fields§
§distinct_clause: Vec<Node>
§into_clause: Option<Box<IntoClause>>
§target_list: Vec<Node>
§from_clause: Vec<Node>
§where_clause: Option<Box<Node>>
§group_clause: Vec<Node>
§group_distinct: bool
§having_clause: Option<Box<Node>>
§window_clause: Vec<Node>
§values_lists: Vec<Node>
§sort_clause: Vec<Node>
§limit_offset: Option<Box<Node>>
§limit_count: Option<Box<Node>>
§limit_option: i32
§locking_clause: Vec<Node>
§with_clause: Option<WithClause>
§op: i32
§all: bool
§larg: Option<Box<SelectStmt>>
§rarg: Option<Box<SelectStmt>>
Implementations§
source§impl SelectStmt
impl SelectStmt
source§impl SelectStmt
impl SelectStmt
sourcepub fn limit_option(&self) -> LimitOption
pub fn limit_option(&self) -> LimitOption
Returns the enum value of limit_option
, or the default if the field is set to an invalid enum value.
sourcepub fn set_limit_option(&mut self, value: LimitOption)
pub fn set_limit_option(&mut self, value: LimitOption)
Sets limit_option
to the provided enum value.
sourcepub fn op(&self) -> SetOperation
pub fn op(&self) -> SetOperation
Returns the enum value of op
, or the default if the field is set to an invalid enum value.
sourcepub fn set_op(&mut self, value: SetOperation)
pub fn set_op(&mut self, value: SetOperation)
Sets op
to the provided enum value.
Trait Implementations§
source§impl Clone for SelectStmt
impl Clone for SelectStmt
source§fn clone(&self) -> SelectStmt
fn clone(&self) -> SelectStmt
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SelectStmt
impl Debug for SelectStmt
source§impl Default for SelectStmt
impl Default for SelectStmt
source§impl Message for SelectStmt
impl Message for SelectStmt
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for SelectStmt
impl PartialEq for SelectStmt
source§fn eq(&self, other: &SelectStmt) -> bool
fn eq(&self, other: &SelectStmt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SelectStmt
Auto Trait Implementations§
impl RefUnwindSafe for SelectStmt
impl Send for SelectStmt
impl Sync for SelectStmt
impl Unpin for SelectStmt
impl UnwindSafe for SelectStmt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more