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: i32query_source: i32can_set_tag: boolutility_stmt: Option<Box<Node>>result_relation: i32has_aggs: boolhas_window_funcs: boolhas_target_srfs: boolhas_sub_links: boolhas_distinct_on: boolhas_recursive: boolhas_modifying_cte: boolhas_for_update: boolhas_row_security: boolcte_list: Vec<Node>rtable: Vec<Node>jointree: Option<Box<FromExpr>>target_list: Vec<Node>override: i32on_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: i32row_marks: Vec<Node>set_operations: Option<Box<Node>>constraint_deps: Vec<Node>with_check_options: Vec<Node>stmt_location: i32stmt_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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

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

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.