model

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseWaldata

func ReleaseWaldata(waldata *Waldata)

Types

type Operate

type Operate uint8
const (
	UNKNOW Operate = iota
	BEGIN
	INSERT
	DELETE
	UPDATE
	COMMIT
)

func (Operate) String

func (o Operate) String() string

type Waldata

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

Waldata represent parsed wal logger data

func AcquireWaldata

func AcquireWaldata() *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