pub struct MysqlSource { /* private fields */ }Implementations§
Source§impl MysqlSource
impl MysqlSource
Sourcepub fn from_pool(pool: Pool) -> Self
pub fn from_pool(pool: Pool) -> Self
Build a source from an existing pool. Useful in tests that need to share the pool with post-export state inspection.
Sourcepub fn connect_with_tls(url: &str, tls: Option<&TlsConfig>) -> Result<Self>
pub fn connect_with_tls(url: &str, tls: Option<&TlsConfig>) -> Result<Self>
Connect honoring the user’s TlsConfig.
Sourcepub fn proxy_kind(&self) -> MysqlProxyKind
pub fn proxy_kind(&self) -> MysqlProxyKind
Expose the proxy classification for diagnostic tools (preflight,
integration tests). Not part of the public Source trait — same
internal-may-change contract as the rest of rivet::source::mysql::*.
#[allow(dead_code)] covers the binary compilation unit; the lib +
integration tests reference this through the rivet::source::mysql
public surface.
Trait Implementations§
Source§impl Source for MysqlSource
impl Source for MysqlSource
Source§fn sample_pressure(&mut self) -> Option<u64>
fn sample_pressure(&mut self) -> Option<u64>
Governor pressure proxy: global Innodb_log_waits — the same monotonic
counter the adaptive batch loop samples. Rising between samples means
InnoDB is stalling on redo-log buffer space under write pressure.
Source§fn export(
&mut self,
request: &ExportRequest<'_>,
sink: &mut dyn BatchSink,
) -> Result<()>
fn export( &mut self, request: &ExportRequest<'_>, sink: &mut dyn BatchSink, ) -> Result<()>
Execute
request.query and stream batches into sink.fn query_scalar(&mut self, sql: &str) -> Result<Option<String>>
Source§fn type_mappings(
&mut self,
query: &str,
column_overrides: &ColumnOverrides,
) -> Result<Vec<TypeMapping>>
fn type_mappings( &mut self, query: &str, column_overrides: &ColumnOverrides, ) -> Result<Vec<TypeMapping>>
Auto Trait Implementations§
impl Freeze for MysqlSource
impl RefUnwindSafe for MysqlSource
impl Send for MysqlSource
impl Sync for MysqlSource
impl Unpin for MysqlSource
impl UnsafeUnpin for MysqlSource
impl UnwindSafe for MysqlSource
Blanket Implementations§
impl<T> Allocation for T
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