pub struct SqlConfig {Show 22 fields
pub db_url: String,
pub max_connections: u32,
pub min_connections: u32,
pub idle_timeout_secs: u64,
pub max_lifetime_secs: u64,
pub query: String,
pub source_path: Option<String>,
pub output_type: SqlOutputType,
pub placeholder: char,
pub noop: bool,
pub delay_ms: u64,
pub initial_delay_ms: u64,
pub max_messages_per_poll: Option<i32>,
pub on_consume: Option<String>,
pub on_consume_failed: Option<String>,
pub on_consume_batch_complete: Option<String>,
pub route_empty_result_set: bool,
pub use_iterator: bool,
pub expected_update_count: Option<i64>,
pub break_batch_on_consume_fail: bool,
pub batch: bool,
pub use_message_body_for_sql: bool,
}Expand description
Configuration for SQL component endpoints.
Fields§
§db_url: String§max_connections: u32§min_connections: u32§idle_timeout_secs: u64§max_lifetime_secs: u64§query: String§source_path: Option<String>Path to a file containing the SQL query (populated when URI starts with sql:file:...)
output_type: SqlOutputType§placeholder: char§noop: bool§delay_ms: u64§initial_delay_ms: u64§max_messages_per_poll: Option<i32>§on_consume: Option<String>§on_consume_failed: Option<String>§on_consume_batch_complete: Option<String>§route_empty_result_set: bool§use_iterator: bool§expected_update_count: Option<i64>§break_batch_on_consume_fail: bool§batch: bool§use_message_body_for_sql: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SqlConfig
impl RefUnwindSafe for SqlConfig
impl Send for SqlConfig
impl Sync for SqlConfig
impl Unpin for SqlConfig
impl UnsafeUnpin for SqlConfig
impl UnwindSafe for SqlConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more