tblsession

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutateContext

type MutateContext struct {
	sessionctx.Context
	// contains filtered or unexported fields
}

MutateContext is used to provide context for table operations.

func NewMutateContext

func NewMutateContext(sctx sessionctx.Context) *MutateContext

NewMutateContext creates a new MutateContext.

func (*MutateContext) AddCachedTableHandleToTxn

func (ctx *MutateContext) AddCachedTableHandleToTxn(tableID int64, handle any)

AddCachedTableHandleToTxn implements `CachedTableSupport` interface

func (*MutateContext) AddTemporaryTableToTxn

func (ctx *MutateContext) AddTemporaryTableToTxn(tblInfo *model.TableInfo) (tblctx.TemporaryTableHandler, bool)

AddTemporaryTableToTxn implements the TemporaryTableSupport interface.

func (*MutateContext) AlternativeAllocators

func (ctx *MutateContext) AlternativeAllocators(tbl *model.TableInfo) (allocators autoid.Allocators, ok bool)

AlternativeAllocators implements the AllocatorContext interface

func (*MutateContext) ConnectionID

func (ctx *MutateContext) ConnectionID() uint64

ConnectionID implements the MutateContext interface.

func (*MutateContext) EnableMutationChecker

func (ctx *MutateContext) EnableMutationChecker() bool

EnableMutationChecker implements the MutateContext interface.

func (*MutateContext) GetCachedTableSupport

func (ctx *MutateContext) GetCachedTableSupport() (tblctx.CachedTableSupport, bool)

GetCachedTableSupport implements the MutateContext interface.

func (*MutateContext) GetExchangePartitionDMLSupport

func (ctx *MutateContext) GetExchangePartitionDMLSupport() (tblctx.ExchangePartitionDMLSupport, bool)

GetExchangePartitionDMLSupport implements the MutateContext interface.

func (*MutateContext) GetExprCtx

func (ctx *MutateContext) GetExprCtx() exprctx.ExprContext

GetExprCtx returns the ExprContext

func (*MutateContext) GetInfoSchemaToCheckExchangeConstraint

func (ctx *MutateContext) GetInfoSchemaToCheckExchangeConstraint() infoschema.MetaOnlyInfoSchema

GetInfoSchemaToCheckExchangeConstraint implements the ExchangePartitionDMLSupport interface.

func (*MutateContext) GetMutateBuffers

func (ctx *MutateContext) GetMutateBuffers() *tblctx.MutateBuffers

GetMutateBuffers implements the MutateContext interface.

func (*MutateContext) GetReservedRowIDAlloc

func (ctx *MutateContext) GetReservedRowIDAlloc() (*stmtctx.ReservedRowIDAlloc, bool)

GetReservedRowIDAlloc implements the MutateContext interface.

func (*MutateContext) GetRowEncodingConfig

func (ctx *MutateContext) GetRowEncodingConfig() tblctx.RowEncodingConfig

GetRowEncodingConfig returns the RowEncodingConfig.

func (*MutateContext) GetRowIDShardGenerator

func (ctx *MutateContext) GetRowIDShardGenerator() *variable.RowIDShardGenerator

GetRowIDShardGenerator implements the MutateContext interface.

func (*MutateContext) GetStatisticsSupport

func (ctx *MutateContext) GetStatisticsSupport() (tblctx.StatisticsSupport, bool)

GetStatisticsSupport implements the MutateContext interface.

func (*MutateContext) GetTemporaryTableSizeLimit

func (ctx *MutateContext) GetTemporaryTableSizeLimit() int64

GetTemporaryTableSizeLimit implements TemporaryTableSupport interface.

func (*MutateContext) GetTemporaryTableSupport

func (ctx *MutateContext) GetTemporaryTableSupport() (tblctx.TemporaryTableSupport, bool)

GetTemporaryTableSupport implements the MutateContext interface.

func (*MutateContext) InRestrictedSQL

func (ctx *MutateContext) InRestrictedSQL() bool

InRestrictedSQL returns whether the current context is used in restricted SQL.

func (*MutateContext) TxnAssertionLevel

func (ctx *MutateContext) TxnAssertionLevel() variable.AssertionLevel

TxnAssertionLevel implements the MutateContext interface.

func (*MutateContext) UpdatePhysicalTableDelta

func (ctx *MutateContext) UpdatePhysicalTableDelta(
	physicalTableID int64, delta int64, count int64, cols variable.DeltaCols,
)

UpdatePhysicalTableDelta implements the StatisticsSupport interface.

Jump to

Keyboard shortcuts

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