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 (Epic 18 C1): the same monotonic
extraction-pressure sum the adaptive batch loop samples
(Created_tmp_disk_tables + Innodb_buffer_pool_wait_free). Rising
between samples means the extraction is spilling a temp table to disk or
stalling on buffer-pool memory — the MySQL analogue of PG temp_bytes.
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.