state

package
v0.0.0-...-4f35aff Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	None     theState = 0
	SkipNext theState = 1 << iota
	SkipBelowVersion
	Reference
	VitessOnly
	MySQLOnly
	ErrorExpected
)

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	// contains filtered or unexported fields
}

func NewState

func NewState(checkBinaryIsAtLeast func(majorVersion int, binary string) bool) *State

func (*State) BeginMySQLOnly

func (s *State) BeginMySQLOnly() error

func (*State) BeginVitessOnly

func (s *State) BeginVitessOnly() error

func (*State) CheckAndClearErrorExpected

func (s *State) CheckAndClearErrorExpected() bool

func (*State) CheckAndClearReference

func (s *State) CheckAndClearReference() bool

func (*State) EndMySQLOnly

func (s *State) EndMySQLOnly() error

func (*State) EndVitessOnly

func (s *State) EndVitessOnly() error

func (*State) IsErrorExpectedSet

func (s *State) IsErrorExpectedSet() bool

func (*State) IsMySQLOnlySet

func (s *State) IsMySQLOnlySet() bool

func (*State) IsReferenceSet

func (s *State) IsReferenceSet() bool

func (*State) IsVitessOnlySet

func (s *State) IsVitessOnlySet() bool

func (*State) NormalExecution

func (s *State) NormalExecution() bool

func (*State) RunOnMySQL

func (s *State) RunOnMySQL() bool

func (*State) RunOnVitess

func (s *State) RunOnVitess() bool

func (*State) SetErrorExpected

func (s *State) SetErrorExpected() error

func (*State) SetReference

func (s *State) SetReference() error

func (*State) SetSkipBelowVersion

func (s *State) SetSkipBelowVersion(binary string, version int) error

func (*State) SetSkipNext

func (s *State) SetSkipNext() error

func (*State) ShouldSkip

func (s *State) ShouldSkip() bool

Jump to

Keyboard shortcuts

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