lock

package
v1.1.0-beta.0...-abef9b1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLockedTableDropped = errors.New("other table can be accessed after locked table dropped")

ErrLockedTableDropped returns error when try to drop the table with write lock

Functions

This section is empty.

Types

type Checker

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

Checker uses to check tables lock.

func NewChecker

NewChecker return new lock Checker.

func (*Checker) CheckLockInDB

func (c *Checker) CheckLockInDB(db string, privilege mysql.PrivilegeType) error

CheckLockInDB uses to check operation on database.

func (*Checker) CheckTableLock

func (c *Checker) CheckTableLock(db, table string, privilege mysql.PrivilegeType, alterWriteable bool) error

CheckTableLock uses to check table lock.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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