compatibility

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PDMS is supported
	// This feature is enabled after the tso primary transferring is supported
	// See https://github.com/tikv/pd/pull/8157
	PDMS = MustNewConstraints(">= v8.3.0")

	// PD ready api
	// See https://github.com/tikv/pd/pull/8749
	PDReadyAPI = MustNewConstraints(">= v9.0.0 || ^v8.5.2")

	// TiKV ready api
	// See https://github.com/tikv/tikv/pull/18237
	TiKVReadyAPI = MustNewConstraints(">= v9.0.0")
)

All these are features supported by different TiDB versions NOTE: Do not add constraints with prerelease version NOTE: MUST add key PRs in comments

Functions

func Check

func Check(v *semver.Version, constraints ...Constraints) bool

Types

type Constraints

type Constraints interface {
	// contains filtered or unexported methods
}

func MustNewConstraints

func MustNewConstraints(expr string) Constraints

Jump to

Keyboard shortcuts

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