gluetidb

package
v1.1.0-beta.0...-68ac9ec Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0, Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Glue

type Glue struct {
	glue.StdIOGlue
	// contains filtered or unexported fields
}

Glue is an implementation of glue.Glue using a new TiDB session.

func New

func New() Glue

New makes a new tidb glue.

func (Glue) CreateSession

func (g Glue) CreateSession(store kv.Storage) (glue.Session, error)

CreateSession implements glue.Glue.

func (Glue) GetClient

func (Glue) GetClient() glue.GlueClient

func (Glue) GetDomain

func (g Glue) GetDomain(store kv.Storage) (*domain.Domain, error)

GetDomain implements glue.Glue.

func (Glue) GetVersion

func (g Glue) GetVersion() string

GetVersion implements glue.Glue.

func (Glue) Open

func (g Glue) Open(path string, option pd.SecurityOption) (kv.Storage, error)

Open implements glue.Glue.

func (Glue) OwnsStorage

func (Glue) OwnsStorage() bool

OwnsStorage implements glue.Glue.

func (Glue) Record

func (g Glue) Record(name string, value uint64)

Record implements glue.Glue.

func (Glue) StartProgress

func (g Glue) StartProgress(ctx context.Context, cmdName string, total int64, redirectLog bool) glue.Progress

StartProgress implements glue.Glue.

func (Glue) UseOneShotSession

func (g Glue) UseOneShotSession(store kv.Storage, closeDomain bool, fn func(glue.Session) error) error

UseOneShotSession implements glue.Glue.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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