pub struct MssqlSource { /* private fields */ }Expand description
SQL Server source. Owns the async driver + the runtime that drives it.
pub (not pub(crate)) so integration tests can reach proxy_kind() the
same way they reach MysqlSource::proxy_kind(); the rest of the type
carries the same “no external API contract” disclaimer as MysqlSource.
Implementations§
Source§impl MssqlSource
impl MssqlSource
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 to SQL Server, honouring the shared TlsConfig. url is the
resolved sqlserver://user:pass@host:port/db form. A successful return
has completed a TLS login handshake and a SELECT 1 round-trip.
Sourcepub fn proxy_kind(&self) -> MssqlProxyKind
pub fn proxy_kind(&self) -> MssqlProxyKind
Expose the proxy classification for diagnostics (preflight, integration
tests). Not part of the Source trait — same internal-may-change
contract as the rest of rivet::source::mssql::*.
Trait Implementations§
Source§impl Source for MssqlSource
impl Source for MssqlSource
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 MssqlSource
impl !RefUnwindSafe for MssqlSource
impl !UnwindSafe for MssqlSource
impl Send for MssqlSource
impl Sync for MssqlSource
impl Unpin for MssqlSource
impl UnsafeUnpin for MssqlSource
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