pub struct PostgresSource { /* private fields */ }Implementations§
Source§impl PostgresSource
impl PostgresSource
Sourcepub fn connect(url: &str) -> Result<Self>
pub fn connect(url: &str) -> Result<Self>
Connect with no transport security (legacy path). Prefer Self::connect_with_tls
for production workloads so credentials and result sets are not visible on the wire.
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. When tls.mode is
[TlsMode::Disable] this falls back to Self::connect.
Trait Implementations§
Source§impl Source for PostgresSource
impl Source for PostgresSource
Source§fn sample_pressure(&mut self) -> Option<u64>
fn sample_pressure(&mut self) -> Option<u64>
Governor pressure proxy: pg_stat_bgwriter.checkpoints_req — the same
monotonic counter the adaptive batch loop samples. Rising between samples
means the source is checkpointing harder 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 PostgresSource
impl !RefUnwindSafe for PostgresSource
impl !Sync for PostgresSource
impl !UnwindSafe for PostgresSource
impl Send for PostgresSource
impl Unpin for PostgresSource
impl UnsafeUnpin for PostgresSource
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