sqlkiller

package
v1.1.0-beta.0...-61c2172 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	UnspecifiedKillSignal killSignal = iota
	QueryInterrupted
	MaxExecTimeExceeded
	QueryMemoryExceeded
	ServerMemoryExceeded
)

KillSignal types.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLKiller

type SQLKiller struct {
	Signal killSignal
	ConnID uint64
}

SQLKiller is used to kill a query.

func (*SQLKiller) HandleSignal

func (killer *SQLKiller) HandleSignal() error

HandleSignal handles the kill signal and return the error.

func (*SQLKiller) Reset

func (killer *SQLKiller) Reset()

Reset resets the SqlKiller.

func (*SQLKiller) SendKillSignal

func (killer *SQLKiller) SendKillSignal(reason killSignal)

SendKillSignal sends a kill signal to the query.

Jump to

Keyboard shortcuts

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