pub struct PostgresWalSource { /* private fields */ }Implementations§
Source§impl PostgresWalSource
impl PostgresWalSource
pub fn scripted( config: PostgresSourceConfig, database_name: impl Into<String>, events: impl IntoIterator<Item = LogicalEvent>, ) -> Result<Self, ConnectError>
pub async fn connect(config: PostgresSourceConfig) -> Result<Self, ConnectError>
Trait Implementations§
Source§impl Debug for PostgresWalSource
impl Debug for PostgresWalSource
Source§impl Source<Bytes, Bytes> for PostgresWalSource
impl Source<Bytes, Bytes> for PostgresWalSource
Source§fn poll<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<ConnectRecord<Bytes, Bytes>>, ConnectError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn poll<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<ConnectRecord<Bytes, Bytes>>, ConnectError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Pull the next record, advancing the source’s read position. Read more
Source§fn checkpoint(&self) -> Option<SourceOffset>
fn checkpoint(&self) -> Option<SourceOffset>
Snapshot the current read position so the runtime can persist it. Read more
Source§fn seek<'life0, 'async_trait>(
&'life0 mut self,
offset: SourceOffset,
) -> Pin<Box<dyn Future<Output = Result<(), ConnectError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn seek<'life0, 'async_trait>(
&'life0 mut self,
offset: SourceOffset,
) -> Pin<Box<dyn Future<Output = Result<(), ConnectError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Restore the read position to a previously
checkpointed
offset. Called once, before the first poll, on startup
and after a rebalance. A source with no stored offset is not sought and
starts from its configured default position. Read moreSource§fn acknowledge<'life0, 'life1, 'async_trait>(
&'life0 mut self,
offset: &'life1 SourceOffset,
) -> Pin<Box<dyn Future<Output = Result<(), ConnectError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn acknowledge<'life0, 'life1, 'async_trait>(
&'life0 mut self,
offset: &'life1 SourceOffset,
) -> Pin<Box<dyn Future<Output = Result<(), ConnectError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Acknowledge that
offset is durable end-to-end. Read moreSource§fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), ConnectError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), ConnectError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Release any resources held by the source (connections, file handles).
The default is a no-op. After
close, the source is not polled again. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PostgresWalSource
impl !UnwindSafe for PostgresWalSource
impl Freeze for PostgresWalSource
impl Send for PostgresWalSource
impl Sync for PostgresWalSource
impl Unpin for PostgresWalSource
impl UnsafeUnpin for PostgresWalSource
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