Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocatorContext ¶
type AllocatorContext interface { // TxnRecordTempTable record the temporary table to the current transaction. // This method will be called when the temporary table is modified or should allocate id in the transaction. TxnRecordTempTable(tbl *model.TableInfo) tableutil.TempTable }
AllocatorContext is used to provide context for method `table.Allocators`.
type MutateContext ¶
type MutateContext interface { AllocatorContext // GetExprCtx returns the context to build or evaluate expressions GetExprCtx() exprctx.ExprContext // Value returns the value associated with this context for key. Value(key fmt.Stringer) any // GetSessionVars returns the session variables. GetSessionVars() *variable.SessionVars // Txn returns the current transaction which is created before executing a statement. // The returned kv.Transaction is not nil, but it maybe pending or invalid. // If the active parameter is true, call this function will wait for the pending txn // to become valid. Txn(active bool) (kv.Transaction, error) // StmtGetMutation gets the binlog mutation for current statement. StmtGetMutation(int64) *binlog.TableMutation // GetDomainInfoSchema returns the latest information schema in domain GetDomainInfoSchema() infoschema.MetaOnlyInfoSchema // TxnRecordTempTable record the temporary table to the current transaction. // This method will be called when the temporary table is modified or should allocate id in the transaction. TxnRecordTempTable(tbl *model.TableInfo) tableutil.TempTable }
MutateContext is used to when mutating a table.
Click to show internal directories.
Click to hide internal directories.