Versions in this module Expand all Collapse all v7 v7.0.4 Jan 30, 2023 v7.0.2 Jan 30, 2023 Changes in this version + const DefaultRestoreFlags + func OutputFormat(s string) string + type CTERestorer struct + CTENames []string + func (c *CTERestorer) IsCTETableName(nameL string) bool + func (c *CTERestorer) RecordCTEName(nameL string) + func (c *CTERestorer) RestoreCTEFunc() func() + type Formatter interface + Format func(format string, args ...interface{}) (n int, errno error) + func FlatFormatter(w io.Writer) Formatter + func IndentFormatter(w io.Writer, indent string) Formatter + type RestoreCtx struct + DefaultDB string + Flags RestoreFlags + In io.Writer + func NewRestoreCtx(flags RestoreFlags, in io.Writer) *RestoreCtx + func (ctx *RestoreCtx) WriteKeyWord(keyWord string) + func (ctx *RestoreCtx) WriteName(name string) + func (ctx *RestoreCtx) WritePlain(plainText string) + func (ctx *RestoreCtx) WritePlainf(format string, a ...interface{}) + func (ctx *RestoreCtx) WriteString(str string) + func (ctx *RestoreCtx) WriteWithSpecialComments(featureID string, fn func() error) error + type RestoreFlags uint64 + const RestoreBracketAroundBinaryOperation + const RestoreKeyWordLowercase + const RestoreKeyWordUppercase + const RestoreNameBackQuotes + const RestoreNameDoubleQuotes + const RestoreNameLowercase + const RestoreNameUppercase + const RestoreSpacesAroundBinaryOperation + const RestoreStringDoubleQuotes + const RestoreStringEscapeBackslash + const RestoreStringSingleQuotes + const RestoreStringWithoutCharset + const RestoreStringWithoutDefaultCharset + const RestoreTiDBSpecialComment + const RestoreWithTTLEnableOff + const RestoreWithoutSchemaName + const RestoreWithoutTableName + const SkipPlacementRuleForRestore + func (rf RestoreFlags) HasKeyWordLowercaseFlag() bool + func (rf RestoreFlags) HasKeyWordUppercaseFlag() bool + func (rf RestoreFlags) HasNameBackQuotesFlag() bool + func (rf RestoreFlags) HasNameDoubleQuotesFlag() bool + func (rf RestoreFlags) HasNameLowercaseFlag() bool + func (rf RestoreFlags) HasNameUppercaseFlag() bool + func (rf RestoreFlags) HasRestoreBracketAroundBinaryOperation() bool + func (rf RestoreFlags) HasRestoreWithTTLEnableOff() bool + func (rf RestoreFlags) HasSkipPlacementRuleForRestoreFlag() bool + func (rf RestoreFlags) HasSpacesAroundBinaryOperationFlag() bool + func (rf RestoreFlags) HasStringDoubleQuotesFlag() bool + func (rf RestoreFlags) HasStringEscapeBackslashFlag() bool + func (rf RestoreFlags) HasStringSingleQuotesFlag() bool + func (rf RestoreFlags) HasStringWithoutCharset() bool + func (rf RestoreFlags) HasStringWithoutDefaultCharset() bool + func (rf RestoreFlags) HasTiDBSpecialCommentFlag() bool + func (rf RestoreFlags) HasWithoutSchemaNameFlag() bool + func (rf RestoreFlags) HasWithoutTableNameFlag() bool