Struct libpgquery_sys::Query [−][src]
pub struct Query {Show 36 fields
pub command_type: i32,
pub query_source: i32,
pub can_set_tag: bool,
pub utility_stmt: Option<Box<Node>>,
pub result_relation: i32,
pub has_aggs: bool,
pub has_window_funcs: bool,
pub has_target_srfs: bool,
pub has_sub_links: bool,
pub has_distinct_on: bool,
pub has_recursive: bool,
pub has_modifying_cte: bool,
pub has_for_update: bool,
pub has_row_security: bool,
pub cte_list: Vec<Node>,
pub rtable: Vec<Node>,
pub jointree: Option<Box<FromExpr>>,
pub target_list: Vec<Node>,
pub override: i32,
pub on_conflict: Option<Box<OnConflictExpr>>,
pub returning_list: Vec<Node>,
pub group_clause: Vec<Node>,
pub grouping_sets: Vec<Node>,
pub having_qual: Option<Box<Node>>,
pub window_clause: Vec<Node>,
pub distinct_clause: Vec<Node>,
pub sort_clause: Vec<Node>,
pub limit_offset: Option<Box<Node>>,
pub limit_count: Option<Box<Node>>,
pub limit_option: i32,
pub row_marks: Vec<Node>,
pub set_operations: Option<Box<Node>>,
pub constraint_deps: Vec<Node>,
pub with_check_options: Vec<Node>,
pub stmt_location: i32,
pub stmt_len: i32,
}
Fields
command_type: i32
query_source: i32
can_set_tag: bool
utility_stmt: Option<Box<Node>>
result_relation: i32
has_aggs: bool
has_window_funcs: bool
has_target_srfs: bool
has_sub_links: bool
has_distinct_on: bool
has_recursive: bool
has_modifying_cte: bool
has_for_update: bool
has_row_security: bool
cte_list: Vec<Node>
rtable: Vec<Node>
jointree: Option<Box<FromExpr>>
target_list: Vec<Node>
override: i32
on_conflict: Option<Box<OnConflictExpr>>
returning_list: Vec<Node>
group_clause: Vec<Node>
grouping_sets: Vec<Node>
having_qual: Option<Box<Node>>
window_clause: Vec<Node>
distinct_clause: Vec<Node>
sort_clause: Vec<Node>
limit_offset: Option<Box<Node>>
limit_count: Option<Box<Node>>
limit_option: i32
row_marks: Vec<Node>
set_operations: Option<Box<Node>>
constraint_deps: Vec<Node>
with_check_options: Vec<Node>
stmt_location: i32
stmt_len: i32
Implementations
Returns the enum value of command_type
, or the default if the field is set to an invalid enum value.
Sets command_type
to the provided enum value.
Returns the enum value of query_source
, or the default if the field is set to an invalid enum value.
Sets query_source
to the provided enum value.
Returns the enum value of override
, or the default if the field is set to an invalid enum value.
Sets override
to the provided enum value.
Returns the enum value of limit_option
, or the default if the field is set to an invalid enum value.
Sets limit_option
to the provided enum value.
Trait Implementations
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
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.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Query
impl UnwindSafe for Query
Blanket Implementations
Mutably borrows from an owned value. Read more