Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LSNToPosition ¶
LSNToPosition converts a Postgres LSN to a Conduit position.
Types ¶
type CDCHandler ¶
type CDCHandler struct {
// contains filtered or unexported fields
}
CDCHandler is responsible for handling logical replication messages, converting them to a record and sending them to a channel.
func NewCDCHandler ¶
func NewCDCHandler( rs *internal.RelationSet, keyColumn string, columns []string, out chan<- sdk.Record, ) *CDCHandler
type CDCIterator ¶
type CDCIterator struct {
// contains filtered or unexported fields
}
CDCIterator asynchronously listens for events from the logical replication slot and returns them to the caller through Next.
func NewCDCIterator ¶
func NewCDCIterator(ctx context.Context, conn *pgx.Conn, config Config) (*CDCIterator, error)
NewCDCIterator sets up the subscription to a logical replication slot and starts a goroutine that listens to events. The goroutine will keep running until either the context is canceled or Teardown is called.
Click to show internal directories.
Click to hide internal directories.