plan

package
v0.5.708 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plan

type Plan interface {

	// Getters
	GetType() sqlparser.StatementType
	GetStatement() (sqlparser.Statement, bool)
	GetOriginal() string
	GetInstructions() primitivegraph.PrimitiveGraphHolder
	GetBindVarNeeds() sqlparser.BindVarNeeds

	// Signals whether the plan is worthy to place in `cache.LRUCache`.
	IsCacheable() bool

	// Get the redo log entry.
	GetRedoLog() (binlog.LogEntry, bool)
	// Get the undo log entry.
	GetUndoLog() (binlog.LogEntry, bool)

	// Setters
	SetType(t sqlparser.StatementType)
	SetStatement(statement sqlparser.Statement)
	SetOriginal(original string)
	SetInstructions(instructions primitivegraph.PrimitiveGraphHolder)
	SetBindVarNeeds(bindVarNeeds sqlparser.BindVarNeeds)
	SetCacheable(isCacheable bool)
	SetTxnID(txnID int)

	//
	IsReadOnly() bool
	SetReadOnly(bool)

	// Size is defined so that Plan can be given to a cache.LRUCache,
	// which requires its objects to define a Size function.
	Size() int

	GetPrimitiveGraphHolder() (primitivegraph.PrimitiveGraphHolder, bool)
}

func NewPlan

func NewPlan(
	rawQuery string,
) Plan

Jump to

Keyboard shortcuts

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