pub struct PostgresBootstrapProvider { /* private fields */ }Expand description
Bootstrap provider for PostgreSQL sources
This provider takes its configuration directly at construction time, following the instance-based plugin architecture.
Implementations§
Source§impl PostgresBootstrapProvider
impl PostgresBootstrapProvider
Sourcepub fn new(postgres_config: PostgresBootstrapConfig) -> Self
pub fn new(postgres_config: PostgresBootstrapConfig) -> Self
Create a new PostgreSQL bootstrap provider with the given configuration
Sourcepub fn builder() -> PostgresBootstrapProviderBuilder
pub fn builder() -> PostgresBootstrapProviderBuilder
Create a builder for PostgresBootstrapProvider
Trait Implementations§
Source§impl BootstrapProvider for PostgresBootstrapProvider
impl BootstrapProvider for PostgresBootstrapProvider
Source§fn bootstrap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: BootstrapRequest,
context: &'life1 BootstrapContext,
event_tx: BootstrapEventSender,
_settings: Option<&'life2 SourceSubscriptionSettings>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn bootstrap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: BootstrapRequest,
context: &'life1 BootstrapContext,
event_tx: BootstrapEventSender,
_settings: Option<&'life2 SourceSubscriptionSettings>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Perform bootstrap operation for the given request
Sends bootstrap events to the provided channel
Returns the number of elements sent Read more
Auto Trait Implementations§
impl Freeze for PostgresBootstrapProvider
impl RefUnwindSafe for PostgresBootstrapProvider
impl Send for PostgresBootstrapProvider
impl Sync for PostgresBootstrapProvider
impl Unpin for PostgresBootstrapProvider
impl UnwindSafe for PostgresBootstrapProvider
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