fn extract_transaction<'a>(
stream: impl AsyncStream<Item = Result<ReplicationMessage<LogicalReplicationMessage>, TransientError>> + 'a,
metadata_client: &'a Client,
commit_lsn: MzOffset,
table_info: &'a mut BTreeMap<u32, BTreeMap<usize, SourceOutputInfo>>,
metrics: &'a PgSourceMetrics,
publication: &'a str,
) -> impl AsyncStream<Item = Result<(u32, usize, Result<Row, DefiniteError>, Diff), TransientError>> + 'aExpand description
Extracts a single transaction from the replication stream delimited by a BEGIN and COMMIT message. The BEGIN message must have already been consumed from the stream before calling this function.