Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2019 Changes in this version + const WarnLevelError + const WarnLevelNote + const WarnLevelWarning + type SQLWarn struct + Err error + Level string + type StatementContext struct + AllowInvalidDate bool + BadNullAsWarning bool + BatchCheck bool + DividedByZeroAsWarning bool + DupKeyAsWarning bool + IgnoreTruncate bool + IgnoreZeroInDate bool + InDeleteStmt bool + InInsertStmt bool + InLoadDataStmt bool + InNullRejectCheck bool + InSelectStmt bool + InShowWarning bool + InUpdateStmt bool + IndexIDs []int64 + InsertID uint64 + IsDDLJobInQueue bool + LastInsertID uint64 + NotFillCache bool + NowTs time.Time + OverflowAsWarning bool + PadCharToFullLength bool + PrevAffectedRows int64 + PrevLastInsertID uint64 + Priority mysql.PriorityEnum + StmtType string + SysTs time.Time + TableIDs []int64 + TimeZone *time.Location + TruncateAsWarning bool + UseCache bool + func (sc *StatementContext) AddAffectedRows(rows uint64) + func (sc *StatementContext) AddCopiedRows(rows uint64) + func (sc *StatementContext) AddFoundRows(rows uint64) + func (sc *StatementContext) AddRecordRows(rows uint64) + func (sc *StatementContext) AddTouchedRows(rows uint64) + func (sc *StatementContext) AddUpdatedRows(rows uint64) + func (sc *StatementContext) AffectedRows() uint64 + func (sc *StatementContext) AppendError(warn error) + func (sc *StatementContext) AppendNote(warn error) + func (sc *StatementContext) AppendWarning(warn error) + func (sc *StatementContext) CopiedRows() uint64 + func (sc *StatementContext) FoundRows() uint64 + func (sc *StatementContext) GetMessage() string + func (sc *StatementContext) GetWarnings() []SQLWarn + func (sc *StatementContext) HandleOverflow(err error, warnErr error) error + func (sc *StatementContext) HandleTruncate(err error) error + func (sc *StatementContext) HistogramsNotLoad() bool + func (sc *StatementContext) NumWarnings(errOnly bool) uint16 + func (sc *StatementContext) RecordRows() uint64 + func (sc *StatementContext) ResetForRetry() + func (sc *StatementContext) SetHistogramsNotLoad() + func (sc *StatementContext) SetMessage(msg string) + func (sc *StatementContext) SetWarnings(warns []SQLWarn) + func (sc *StatementContext) ShouldClipToZero() bool + func (sc *StatementContext) ShouldIgnoreOverflowError() bool + func (sc *StatementContext) TouchedRows() uint64 + func (sc *StatementContext) UpdatedRows() uint64 + func (sc *StatementContext) WarningCount() uint16