Documentation ¶
Index ¶
- Variables
- type Accumulator
- type Stream
- func (s *Stream) Close(ctx context.Context) error
- func (s *Stream) CreateSlot(ctx context.Context) (string, error)
- func (s *Stream) SetRestartLSN(restartLSN pglogrepl.LSN)
- func (s *Stream) Stream(ctx context.Context) error
- func (s *Stream) StreamToJSONLines(ctx context.Context, outFile string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRelationChanged = errors.New("relation changed") ErrRelationNotFound = errors.New("relation not found") ErrNoIdentityColumns = errors.New("relation has no identity columns") ErrMessageLost = errors.New("unexpected message order (messages are lost)") ErrUnknownMessageType = errors.New("unknown message type") )
Functions ¶
This section is empty.
Types ¶
type Accumulator ¶
type Accumulator struct {
// contains filtered or unexported fields
}
func NewAccumulator ¶
func NewAccumulator(typeIsArray map[uint32]bool) *Accumulator
func (*Accumulator) Add ¶
func (wta *Accumulator) Add(msg pglogrepl.Message) (*db.WalTransaction, error)
Add adds a logical replication message to the accumulator and returns a WalTransaction when the transaction is complete
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) SetRestartLSN ¶
Click to show internal directories.
Click to hide internal directories.