pub struct ExecuteQueryRequest {Show 13 fields
pub session_id: String,
pub exec_mode: i32,
pub tx_control: Option<TransactionControl>,
pub parameters: HashMap<String, TypedValue>,
pub stats_mode: i32,
pub concurrent_result_sets: bool,
pub response_part_limit_bytes: i64,
pub pool_id: String,
pub stats_period_ms: i64,
pub schema_inclusion_mode: i32,
pub result_set_format: i32,
pub arrow_format_settings: Option<ArrowFormatSettings>,
pub query: Option<Query>,
}Fields§
§session_id: StringSession identifier (required)
exec_mode: i32§tx_control: Option<TransactionControl>§parameters: HashMap<String, TypedValue>§stats_mode: i32§concurrent_result_sets: boolFor queries with multiple result sets, some of them may be computed concurrently. If true, parts of different results sets may be interleaved in response stream.
response_part_limit_bytes: i64Allows to set size limitation (in bytes) for one result part
pool_id: StringWorkload manager pool id
stats_period_ms: i64Time interval for sending periodical query statistics. When query statistics are enabled (stats_mode != STATS_MODE_NONE), by default statistics will be sent only once after query execution is finished. In case when stats_period_ms is specified and is non-zero, query statistics will be additionally sent every stats_period_ms milliseconds beginning from the start of query execution.
schema_inclusion_mode: i32Schema inclusion mode for the result sets. If is not specified, SchemaInclusionMode.SCHEMA_INCLUSION_MODE_ALWAYS is used.
result_set_format: i32Format of the result sets. If is not specified, Ydb.ResultSet.Format.FORMAT_VALUE is used.
arrow_format_settings: Option<ArrowFormatSettings>Format settings, only used for Ydb.ResultSet.Format.FORMAT_ARROW
query: Option<Query>Implementations§
Source§impl ExecuteQueryRequest
impl ExecuteQueryRequest
Sourcepub fn exec_mode(&self) -> ExecMode
pub fn exec_mode(&self) -> ExecMode
Returns the enum value of exec_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_exec_mode(&mut self, value: ExecMode)
pub fn set_exec_mode(&mut self, value: ExecMode)
Sets exec_mode to the provided enum value.
Sourcepub fn stats_mode(&self) -> StatsMode
pub fn stats_mode(&self) -> StatsMode
Returns the enum value of stats_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_stats_mode(&mut self, value: StatsMode)
pub fn set_stats_mode(&mut self, value: StatsMode)
Sets stats_mode to the provided enum value.
Sourcepub fn schema_inclusion_mode(&self) -> SchemaInclusionMode
pub fn schema_inclusion_mode(&self) -> SchemaInclusionMode
Returns the enum value of schema_inclusion_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_schema_inclusion_mode(&mut self, value: SchemaInclusionMode)
pub fn set_schema_inclusion_mode(&mut self, value: SchemaInclusionMode)
Sets schema_inclusion_mode to the provided enum value.
Sourcepub fn result_set_format(&self) -> Format
pub fn result_set_format(&self) -> Format
Returns the enum value of result_set_format, or the default if the field is set to an invalid enum value.
Sourcepub fn set_result_set_format(&mut self, value: Format)
pub fn set_result_set_format(&mut self, value: Format)
Sets result_set_format to the provided enum value.
Trait Implementations§
Source§impl Clone for ExecuteQueryRequest
impl Clone for ExecuteQueryRequest
Source§impl Debug for ExecuteQueryRequest
impl Debug for ExecuteQueryRequest
Source§impl Default for ExecuteQueryRequest
impl Default for ExecuteQueryRequest
Source§impl<'de> Deserialize<'de> for ExecuteQueryRequest
impl<'de> Deserialize<'de> for ExecuteQueryRequest
Source§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 ExecuteQueryRequest
impl Message for ExecuteQueryRequest
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.Source§impl PartialEq for ExecuteQueryRequest
impl PartialEq for ExecuteQueryRequest
Source§impl Serialize for ExecuteQueryRequest
impl Serialize for ExecuteQueryRequest
impl StructuralPartialEq for ExecuteQueryRequest
Auto Trait Implementations§
impl Freeze for ExecuteQueryRequest
impl RefUnwindSafe for ExecuteQueryRequest
impl Send for ExecuteQueryRequest
impl Sync for ExecuteQueryRequest
impl Unpin for ExecuteQueryRequest
impl UnsafeUnpin for ExecuteQueryRequest
impl UnwindSafe for ExecuteQueryRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request