Documentation
¶
Overview ¶
Package decode defines logical-decoding contracts enforcing ST-4 and CO-4.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeEvent ¶
type ChangeEvent struct {
Kind ChangeKind
LSN LSN
Key int64
OldKey *int64
Columns []Column
}
ChangeEvent is one decoded row change. OldKey is non-nil only when an update moved the key.
func (ChangeEvent) PresentColumns ¶
func (e ChangeEvent) PresentColumns() []Column
PresentColumns returns only values present in the decoded row image.
type ChangeKind ¶
type ChangeKind uint8
ChangeKind identifies a decoded row operation.
const ( // Insert creates a row. Insert ChangeKind = iota + 1 // Update changes a row. Update // Delete removes a row. Delete )
func (ChangeKind) String ¶
func (k ChangeKind) String() string
String returns the stable operation name.
Click to show internal directories.
Click to hide internal directories.