model

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutWaldata

func PutWaldata(waldata *Waldata)

Types

type Operation

type Operation uint8
const (
	Unknown Operation = iota
	Begin
	Insert
	Delete
	Update
	Commit
)

func NewOperation

func NewOperation(operate string) (op Operation)

func (Operation) String

func (o Operation) String() (operate string)

type Waldata

type Waldata struct {
	OperationType Operation
	Schema        string
	Table         string
	Data          map[string]any
	Timestamp     int64
	Pos           uint64
	Rule          string
}

Waldata represent parsed wal logger data

func NewWaldata

func NewWaldata() *Waldata

func (*Waldata) Decode

func (w *Waldata) Decode(wal *pgx.WalMessage, tableName string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL