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: the single place that detects the
proxy kind, warns once, and wraps the pool. The connect* entry points
all funnel through here (also handy in tests that share the pool for
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<()>
request.query and stream batches into sink.