pub struct PostgresCdcBuilder { /* private fields */ }Expand description
Builder for a PostgreSQL pgoutput source.
Implementations§
Source§impl PostgresCdcBuilder
impl PostgresCdcBuilder
pub fn connect(self, config: PostgresCdcConfig) -> Self
pub fn connect_url(self, url: impl AsRef<str>) -> CdcResult<Self>
pub fn slot(self, slot: impl Into<String>) -> Self
pub fn publication(self, publication: impl Into<String>) -> Self
pub fn start_from(self, start: CdcStart) -> Self
pub fn feedback(self, feedback: FeedbackMode) -> Self
pub fn slot_lifecycle(self, lifecycle: SlotLifecycle) -> Self
pub fn buffer_capacity(self, capacity: usize) -> Self
pub fn replication_buffer_events(self, capacity: usize) -> Self
pub fn status_interval(self, interval: Duration) -> Self
pub fn idle_wakeup_interval(self, interval: Duration) -> Self
pub fn validate_publication(self, enabled: bool) -> Self
pub fn checkpoint_store<S>(self, store: S) -> Selfwhere
S: CdcCheckpointStore,
pub fn checkpoint_store_arc(self, store: Arc<dyn CdcCheckpointStore>) -> Self
pub fn reconnect(self, settings: ReconnectSettings) -> Self
pub fn disable_reconnect(self) -> Self
pub fn build(self) -> CdcResult<Source<ChangeEvent, CdcHandle>>
pub fn build_with_context( self, ) -> CdcResult<SourceWithContext<ChangeEvent, CdcOffset, CdcHandle>>
pub fn restart_factory( self, ) -> CdcResult<impl Fn() -> Source<ChangeEvent, CdcHandle> + Clone + Send + Sync + 'static>
Trait Implementations§
Source§impl Clone for PostgresCdcBuilder
impl Clone for PostgresCdcBuilder
Source§fn clone(&self) -> PostgresCdcBuilder
fn clone(&self) -> PostgresCdcBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PostgresCdcBuilder
impl !UnwindSafe for PostgresCdcBuilder
impl Freeze for PostgresCdcBuilder
impl Send for PostgresCdcBuilder
impl Sync for PostgresCdcBuilder
impl Unpin for PostgresCdcBuilder
impl UnsafeUnpin for PostgresCdcBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage