multirowaction

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidActionSequence = errors.New("invalid message sequence")

Functions

This section is empty.

Types

type RelationActions

type RelationActions struct {
	*db.Relation
	Actions []*db.RowAction
}

func Grouper

func Grouper(batch []*db.WalTransaction) ([]*RelationActions, error)

Grouper returns actions grouped by table The returned map is keyed by table. RowActions are returned in a map keyed on row identity. Redundant actions to the same row identity are aggregated into one equivalent action. The order of row actions within each table and group is not maintained (because row actions are stored in a map),

Jump to

Keyboard shortcuts

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