test

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewTestDB

func NewTestDB(rowMaps [][]sqlutils.RowMap) *DB

func (*DB) QueryVTOrc

func (t *DB) QueryVTOrc(query string, argsArray []any, onRow func(sqlutils.RowMap) error) error

type InfoForRecoveryAnalysis

type InfoForRecoveryAnalysis struct {
	TabletInfo                                *topodatapb.Tablet
	PrimaryTabletInfo                         *topodatapb.Tablet
	PrimaryTimestamp                          *time.Time
	Keyspace                                  string
	Shard                                     string
	KeyspaceType                              int
	DurabilityPolicy                          string
	IsInvalid                                 int
	IsPrimary                                 int
	IsCoPrimary                               int
	Hostname                                  string
	Port                                      int
	SourceHost                                string
	SourcePort                                int
	DataCenter                                string
	Region                                    string
	PhysicalEnvironment                       string
	LogFile                                   string
	LogPos                                    int64
	IsStaleBinlogCoordinates                  int
	GTIDMode                                  string
	LastCheckValid                            int
	LastCheckPartialSuccess                   int
	CountReplicas                             uint
	CountValidReplicas                        uint
	CountValidReplicatingReplicas             uint
	CountReplicasFailingToConnectToPrimary    uint
	CountDowntimedReplicas                    uint
	ReplicationDepth                          uint
	IsFailingToConnectToPrimary               int
	ReplicationStopped                        int
	IsDowntimed                               int
	DowntimeEndTimestamp                      string
	DowntimeRemainingSeconds                  int
	IsBinlogServer                            int
	CountValidOracleGTIDReplicas              uint
	CountValidMariaDBGTIDReplicas             uint
	CountValidBinlogServerReplicas            uint
	SemiSyncPrimaryEnabled                    int
	SemiSyncPrimaryStatus                     int
	SemiSyncPrimaryWaitForReplicaCount        uint
	SemiSyncPrimaryClients                    uint
	SemiSyncReplicaEnabled                    int
	CountSemiSyncReplicasEnabled              uint
	CountLoggingReplicas                      uint
	CountStatementBasedLoggingReplicas        uint
	CountMixedBasedLoggingReplicas            uint
	CountRowBasedLoggingReplicas              uint
	CountDistinctMajorVersionsLoggingReplicas uint
	CountDelayedReplicas                      uint
	CountLaggingReplicas                      uint
	MinReplicaGTIDMode                        string
	MaxReplicaGTIDMode                        string
	MaxReplicaGTIDErrant                      string
	ReadOnly                                  uint
}

func (*InfoForRecoveryAnalysis) ConvertToRowMap

func (info *InfoForRecoveryAnalysis) ConvertToRowMap() sqlutils.RowMap

func (*InfoForRecoveryAnalysis) SetValuesFromTabletInfo

func (info *InfoForRecoveryAnalysis) SetValuesFromTabletInfo()

Jump to

Keyboard shortcuts

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