format

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	UpdateTupleTypeKey = 'K'
	UpdateTupleTypeOld = 'O'
	UpdateTupleTypeNew = 'N'
)
View Source
const (
	InsertTupleDataType = 'N'
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Delete

type Delete struct {
	MessageTime    time.Time
	OldTupleData   *tuple.Data
	OldDecoded     map[string]any
	TableNamespace string
	TableName      string
	OID            uint32
	XID            uint32
	OldTupleType   uint8
}

func NewDelete

func NewDelete(data []byte, streamedTransaction bool, relation map[uint32]*Relation, serverTime time.Time) (*Delete, error)

type Insert

type Insert struct {
	MessageTime    time.Time
	TupleData      *tuple.Data
	Decoded        map[string]any
	TableNamespace string
	TableName      string
	OID            uint32
	XID            uint32
}

func NewInsert

func NewInsert(data []byte, streamedTransaction bool, relation map[uint32]*Relation, serverTime time.Time) (*Insert, error)

type Relation

type Relation struct {
	Namespace     string
	Name          string
	Columns       []tuple.RelationColumn
	OID           uint32
	XID           uint32
	ColumnNumbers uint16
	ReplicaID     uint8
}

func NewRelation

func NewRelation(data []byte, streamedTransaction bool) (*Relation, error)

type Update

type Update struct {
	MessageTime    time.Time
	NewTupleData   *tuple.Data
	NewDecoded     map[string]any
	OldTupleData   *tuple.Data
	OldDecoded     map[string]any
	TableNamespace string
	TableName      string
	OID            uint32
	XID            uint32
	OldTupleType   uint8
}

func NewUpdate

func NewUpdate(data []byte, streamedTransaction bool, relation map[uint32]*Relation, serverTime time.Time) (*Update, error)

Jump to

Keyboard shortcuts

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