Versions in this module Expand all Collapse all v1 v1.0.2 Nov 27, 2021 Changes in this version + const ADD + const AGAINST + const ALGORITHM + const ALL + const ALTER + const ANALYZE + const AND + const APPROXNUM + const AS + const ASC + const ATTACH + const ATTACHLIST + const AUTO_INCREMENT + const AVG_ROW_LENGTH + const AlterAddColumnStr + const AlterCharsetStr + const AlterDropColumnStr + const AlterEngineStr + const AlterModifyColumnStr + const AlterStr + const AscScr + const AttachListStr + const AttachStr + const BEGIN + const BETWEEN + const BIGINT + const BINARY + const BINLOG + const BIT + const BLOB + const BOOL + const BOOLEAN + const BTREE + const BY + const BangStr + const BeginTxnStr + const BetweenStr + const BinaryStr + const BitAndStr + const BitOrStr + const BitXorStr + const BooleanModeStr + const CASE + const CAST + const CHAR + const CHARACTER + const CHARSET + const CHECKSUM + const CLEANUP + const COLLATE + const COLUMN + const COLUMNS + const COLUMN_FORMAT + const COMMENT + const COMMENT_KEYWORD + const COMMIT + const COMMITTED + const COMPACT + const COMPRESSED + const COMPRESSION + const CONNECTION + const CONVERT + const CREATE + const CROSS + const CURRENT_DATE + const CURRENT_TIME + const CURRENT_TIMESTAMP + const CharacterSetStr + const CleanupStr + const CommitTxnStr + const CreateDBStr + const CreateIndexStr + const CreatePartitionTableStr + const CreateTableStr + const DATA + const DATABASE + const DATABASES + const DATE + const DATETIME + const DECIMAL + const DEFAULT + const DELAY_KEY_WRITE + const DELETE + const DESC + const DESCRIBE + const DETACH + const DIRECTORY + const DISK + const DISTINCT + const DISTRIBUTED + const DIV + const DOUBLE + const DROP + const DUPLICATE + const DYNAMIC + const DescScr + const DetachStr + const DirectiveMultiShardAutocommit + const DirectiveQueryTimeout + const DirectiveScatterErrorsAsWarnings + const DirectiveSkipQueryPlanCache + const DistinctStr + const DivStr + const DropDBStr + const DropIndexStr + const DropTableStr + const ELSE + const ENCRYPTION + const END + const ENGINE + const ENGINES + const ENUM + const ESCAPE + const EVENTS + const EXISTS + const EXPANSION + const EXPLAIN + const EqualStr + const FALSE + const FIELDS + const FIXED + const FLOAT + const FLOAT_TYPE + const FOR + const FORCE + const FROM + const FULL + const FULLTEXT + const FloatVal + const ForUpdateStr + const ForceStr + const FullTextStr + const GE + const GEOMETRY + const GEOMETRYCOLLECTION + const GLOBAL + const GROUP + const GROUP_CONCAT + const GTID + const GlobalStr + const GlobalTableType + const GreaterEqualStr + const GreaterThanStr + const HASH + const HAVING + const HEX + const HEXNUM + const HavingStr + const HexNum + const HexVal + const ID + const IF + const IGNORE + const IN + const INDEX + const INNER + const INSERT + const INSERT_METHOD + const INT + const INTEGER + const INTEGRAL + const INTERVAL + const INTNUM + const INTO + const IS + const ISOLATION + const IgnoreStr + const InStr + const IndexStr + const InsertStr + const IntDivStr + const IntVal + const IsFalseStr + const IsNotFalseStr + const IsNotNullStr + const IsNotTrueStr + const IsNullStr + const IsTrueStr + const JOIN + const JSON + const JSONExtractOp + const JSONUnquoteExtractOp + const JSON_EXTRACT_OP + const JSON_UNQUOTE_EXTRACT_OP + const JoinStr + const KEY + const KEY_BLOCK_SIZE + const KILL + const LANGUAGE + const LAST_INSERT_ID + const LE + const LEFT + const LEVEL + const LEX_ERROR + const LIKE + const LIMIT + const LINESTRING + const LIST + const LIST_ARG + const LOCAL + const LOCALTIME + const LOCALTIMESTAMP + const LOCK + const LONGBLOB + const LONGTEXT + const LeftJoinStr + const LessEqualStr + const LessThanStr + const LikeStr + const MATCH + const MAX_ROWS + const MEDIUMBLOB + const MEDIUMINT + const MEDIUMTEXT + const MEMORY + const MIN_ROWS + const MOD + const MODE + const MODIFY + const MULTILINESTRING + const MULTIPOINT + const MULTIPOLYGON + const MinusStr + const ModStr + const MultStr + const NAMES + const NATURAL + const NCHAR + const NE + const NEXT + const NGRAM + const NOT + const NULL + const NULLX + const NULL_SAFE_EQUAL + const NUMERIC + const NaturalJoinStr + const NaturalLanguageModeStr + const NaturalLanguageModeWithQueryExpansionStr + const NaturalLeftJoinStr + const NaturalRightJoinStr + const NormalTableType + const NotBetweenStr + const NotEqualStr + const NotInStr + const NotLikeStr + const NotRegexpStr + const NullSafeEqualStr + const OFF + const OFFSET + const ON + const ONLY + const OPTIMIZE + const OR + const ORDER + const OUTER + const PACK_KEYS + const PARSER + const PARTITION + const PARTITIONS + const PASSWORD + const POINT + const POLYGON + const PRIMARY + const PROCESSLIST + const PartitionTableHash + const PartitionTableList + const PlusStr + const QUERY + const QUERYZ + const QueryExpansionStr + const RADON + const READ + const REAL + const REDUNDANT + const REGEXP + const RENAME + const REPAIR + const REPEATABLE + const REPLACE + const RESHARD + const RIGHT + const ROLLBACK + const ROW_FORMAT + const ReadCommitted + const ReadUncommitted + const RegexpStr + const RenameStr + const RepeatableRead + const ReplaceStr + const ReshardStr + const RightJoinStr + const RollbackTxnStr + const SELECT + const SEPARATOR + const SERIALIZABLE + const SESSION + const SET + const SHARE + const SHIFT_LEFT + const SHIFT_RIGHT + const SHOW + const SIGNED + const SINGLE + const SMALLINT + const SPATIAL + const SQLCacheStr + const SQLNoCacheStr + const SQL_CACHE + const SQL_NO_CACHE + const START + const STATS_AUTO_RECALC + const STATS_PERSISTENT + const STATS_SAMPLE_PAGES + const STATUS + const STORAGE + const STRAIGHT_JOIN + const STRING + const Serializable + const SessionStr + const ShareModeStr + const ShiftLeftStr + const ShiftRightStr + const ShowBinlogEventsStr + const ShowColumnsStr + const ShowCreateDatabaseStr + const ShowCreateTableStr + const ShowDatabasesStr + const ShowEnginesStr + const ShowProcesslistStr + const ShowQueryzStr + const ShowStatusStr + const ShowTableStatusStr + const ShowTablesStr + const ShowTxnzStr + const ShowUnsupportedStr + const ShowVariablesStr + const ShowVersionsStr + const ShowWarningsStr + const SingleTableType + const SpatialStr + const StartTxnStr + const StmtBegin + const StmtCommit + const StmtDDL + const StmtDelete + const StmtInsert + const StmtOther + const StmtReplace + const StmtRollback + const StmtSelect + const StmtSet + const StmtShow + const StmtUnknown + const StmtUpdate + const StmtUse + const StrVal + const StrValWithoutQuote + const StraightJoinHint + const StraightJoinStr + const TABLE + const TABLES + const TABLESPACE + const TEXT + const THEN + const TIME + const TIMESTAMP + const TINYBLOB + const TINYINT + const TINYTEXT + const TO + const TOKUDB_DEFAULT + const TOKUDB_FAST + const TOKUDB_LZMA + const TOKUDB_QUICKLZ + const TOKUDB_SMALL + const TOKUDB_SNAPPY + const TOKUDB_UNCOMPRESSED + const TOKUDB_ZLIB + const TRANSACTION + const TRUE + const TRUNCATE + const TXNZ + const TildaStr + const TruncateTableStr + const TxReadOnly + const TxReadWrite + const UMinusStr + const UNARY + const UNCOMMITTED + const UNION + const UNIQUE + const UNSIGNED + const UNUSED + const UPDATE + const UPlusStr + const USE + const USING + const UTC_DATE + const UTC_TIME + const UTC_TIMESTAMP + const UnionAllStr + const UnionDistinctStr + const UnionStr + const UniqueStr + const UseStr + const VALUE + const VALUES + const VALUE_ARG + const VARBINARY + const VARCHAR + const VARIABLES + const VERSIONS + const VIEW + const ValArg + const WARNINGS + const WHEN + const WHERE + const WITH + const WRITE + const WhereStr + const XA + const YEAR + const ZEROFILL + var Aggregates = map[string]bool + func Append(buf *strings.Builder, node SQLNode) + func Backtick(in string) string + func CheckIndexAlgorithm(algorithm string) bool + func CheckIndexLock(lock string) bool + func EncodeValue(buf *strings.Builder, value *querypb.BindVariable) + func ExtractMysqlComment(sql string) (version string, innerSQL string) + func FetchBindVar(name string, bindVariables map[string]*querypb.BindVariable) (val *querypb.BindVariable, isList bool, err error) + func FormatImpossibleQuery(buf *TrackedBuffer, node SQLNode) + func GetBindvars(stmt Statement) map[string]struct + func IsColName(node Expr) bool + func IsDML(sql string) bool + func IsNull(node Expr) bool + func IsSimpleTuple(node Expr) bool + func IsValue(node Expr) bool + func NewPlanValue(node Expr) (sqltypes.PlanValue, error) + func Normalize(stmt Statement, bindVars map[string]*querypb.BindVariable, prefix string) + func Preview(sql string) int + func SkipQueryPlanCacheDirective(stmt Statement) bool + func StrToLower(str string) string + func String(node SQLNode) string + func StringIn(str string, values ...string) bool + func StripComments(sql string) string + func StripLeadingComments(sql string) string + func Walk(visit Visit, nodes ...SQLNode) error + type AliasedExpr struct + As ColIdent + Expr Expr + func (node *AliasedExpr) Format(buf *TrackedBuffer) + type AliasedTableExpr struct + As TableIdent + Expr SimpleTableExpr + Hints *IndexHints + func (node *AliasedTableExpr) Format(buf *TrackedBuffer) + type AndExpr struct + Left Expr + Right Expr + func (node *AndExpr) Format(buf *TrackedBuffer) + type ApplyFunc func(*Cursor) bool + type BinaryExpr struct + Left Expr + Operator string + Right Expr + func (node *BinaryExpr) Format(buf *TrackedBuffer) + type BoolVal bool + func (node BoolVal) Format(buf *TrackedBuffer) + type CaseExpr struct + Else Expr + Expr Expr + Whens []*When + func (node *CaseExpr) Format(buf *TrackedBuffer) + type Checksum struct + Table TableName + func (node *Checksum) Format(buf *TrackedBuffer) + type ColIdent struct + func NewColIdent(str string) ColIdent + func (node *ColIdent) UnmarshalJSON(b []byte) error + func (node ColIdent) CompliantName() string + func (node ColIdent) Equal(in ColIdent) bool + func (node ColIdent) EqualString(str string) bool + func (node ColIdent) Format(buf *TrackedBuffer) + func (node ColIdent) IsEmpty() bool + func (node ColIdent) Lowered() string + func (node ColIdent) MarshalJSON() ([]byte, error) + func (node ColIdent) String() string + type ColName struct + Metadata interface{} + Name ColIdent + Qualifier TableName + func (node *ColName) Equal(c *ColName) bool + func (node *ColName) Format(buf *TrackedBuffer) + type ColTuple interface + type CollateExpr struct + Charset string + Expr Expr + func (node *CollateExpr) Format(buf *TrackedBuffer) + type ColumnDefinition struct + Name ColIdent + Type ColumnType + func (col *ColumnDefinition) Format(buf *TrackedBuffer) + type ColumnOpt int + const ColumnOptionAutoincrement + const ColumnOptionCollate + const ColumnOptionComment + const ColumnOptionDefault + const ColumnOptionFormat + const ColumnOptionKeyPrimaryOpt + const ColumnOptionKeyUniqueOpt + const ColumnOptionNone + const ColumnOptionNotNull + const ColumnOptionOnUpdate + const ColumnOptionStorage + type ColumnOption struct + Autoincrement BoolVal + Collate *SQLVal + ColumnFormat string + Comment *SQLVal + Default *SQLVal + NotNull BoolVal + OnUpdate string + PrimaryKeyOpt ColumnPrimaryKeyOption + Storage string + UniqueKeyOpt ColumnUniqueKeyOption + func (col ColumnOption) GetOptType() ColumnOpt + type ColumnOptionListOpt struct + ColOptList []*ColumnOption + func (co *ColumnOptionListOpt) GetColumnOption(opt ColumnOpt) *ColumnOption + type ColumnPrimaryKeyOption int + const ColKeyPrimary + const ColKeyPrimaryNone + type ColumnType struct + Autoincrement BoolVal + Charset string + Collate *SQLVal + ColumnFormat string + Comment *SQLVal + Default *SQLVal + EnumValues []string + Length *SQLVal + NotNull BoolVal + OnUpdate string + PrimaryKeyOpt ColumnPrimaryKeyOption + Scale *SQLVal + Storage string + Type string + UniqueKeyOpt ColumnUniqueKeyOption + Unsigned BoolVal + Zerofill BoolVal + func (ct *ColumnType) Format(buf *TrackedBuffer) + type ColumnUniqueKeyOption int + const ColKeyUniqueKey + const ColKeyUniqueNone + type Columns []ColIdent + func (node Columns) FindColumn(col ColIdent) int + func (node Columns) Format(buf *TrackedBuffer) + type CommentDirectives map[string]interface + func (d CommentDirectives) IsSet(key string) bool + func ExtractCommentDirectives(comments Comments) CommentDirectives + type Comments [][]byte + func (node Comments) Format(buf *TrackedBuffer) + type ComparisonExpr struct + Escape Expr + Left Expr + Operator string + Right Expr + func (node *ComparisonExpr) Format(buf *TrackedBuffer) + type ConvertExpr struct + Expr Expr + Type *ConvertType + func (node *ConvertExpr) Format(buf *TrackedBuffer) + type ConvertType struct + Charset string + Length *SQLVal + Operator string + Scale *SQLVal + Type string + func (node *ConvertType) Format(buf *TrackedBuffer) + type ConvertUsingExpr struct + Expr Expr + Type string + func (node *ConvertUsingExpr) Format(buf *TrackedBuffer) + type Cursor struct + func (c *Cursor) Node() SQLNode + func (c *Cursor) Parent() SQLNode + func (c *Cursor) Replace(newNode SQLNode) + type DDL struct + Action string + BackendName string + Charset string + Database TableIdent + DatabaseOptions DatabaseOptionListOpt + DropColumnName string + Engine string + IfExists bool + IfNotExists bool + IndexName string + IndexOpts *IndexOptions + IndexType string + ModifyColumnDef *ColumnDefinition + NewName TableName + PartitionName string + PartitionNum *SQLVal + PartitionOptions PartitionOptions + Table TableName + TableSpec *TableSpec + Tables TableNames + func (node *DDL) Format(buf *TrackedBuffer) + type DatabaseOption struct + CharsetOrCollate string + Value string + type DatabaseOptionListOpt struct + DBOptList []*DatabaseOption + func (optList DatabaseOptionListOpt) Format(buf *TrackedBuffer) + type Default struct + ColName string + func (node *Default) Format(buf *TrackedBuffer) + type Delete struct + Comments Comments + Limit *Limit + OrderBy OrderBy + Table TableName + Where *Where + func (node *Delete) Format(buf *TrackedBuffer) + type Encodable interface + EncodeSQL func(buf *strings.Builder) + type ExistsExpr struct + Subquery *Subquery + func (node *ExistsExpr) Format(buf *TrackedBuffer) + type Explain struct + func (node *Explain) Format(buf *TrackedBuffer) + type Expr interface + func CloneExpr(node Expr) Expr + func ReplaceExpr(root, from, to Expr) Expr + type Exprs []Expr + func (node Exprs) Format(buf *TrackedBuffer) + type FuncExpr struct + Distinct bool + Exprs SelectExprs + Name ColIdent + Qualifier TableIdent + func (node *FuncExpr) Format(buf *TrackedBuffer) + func (node *FuncExpr) IsAggregate() bool + type GroupBy Exprs + func (node GroupBy) Format(buf *TrackedBuffer) + type GroupConcatExpr struct + Distinct string + Exprs SelectExprs + OrderBy OrderBy + Separator string + func (node *GroupConcatExpr) Format(buf *TrackedBuffer) + type IndexColumn struct + Column ColIdent + Length *SQLVal + type IndexDefinition struct + Name ColIdent + Opts *IndexOptions + Primary bool + Type string + Unique bool + func (idx *IndexDefinition) Format(buf *TrackedBuffer) + type IndexHints struct + Indexes []ColIdent + Type string + func (node *IndexHints) Format(buf *TrackedBuffer) + type IndexOption struct + Type IndexOptionType + Val *SQLVal + type IndexOptionType int + const IndexOptionAlgorithm + const IndexOptionBlockSize + const IndexOptionComment + const IndexOptionLock + const IndexOptionNone + const IndexOptionParser + const IndexOptionUsing + type IndexOptions struct + Algorithm string + BlockSize *SQLVal + Columns []*IndexColumn + Comment string + Lock string + Parser string + Using string + func NewIndexOptions(columns []*IndexColumn, idxOptList []*IndexOption) *IndexOptions + func (opts *IndexOptions) Format(buf *TrackedBuffer) + type Insert struct + Action string + Columns Columns + Comments Comments + Ignore string + OnDup OnDup + Rows InsertRows + Table TableName + func (node *Insert) Format(buf *TrackedBuffer) + type InsertRows interface + type InsertValues [][]sqltypes.Value + func (iv InsertValues) EncodeSQL(buf *strings.Builder) + type IntervalExpr struct + Expr Expr + Unit string + func (node *IntervalExpr) Format(buf *TrackedBuffer) + type IsExpr struct + Expr Expr + Operator string + func (node *IsExpr) Format(buf *TrackedBuffer) + type JoinTableExpr struct + Join string + LeftExpr TableExpr + On Expr + RightExpr TableExpr + func (node *JoinTableExpr) Format(buf *TrackedBuffer) + type Kill struct + QueryID *NumVal + func (node *Kill) Format(buf *TrackedBuffer) + type LengthScaleOption struct + Length *SQLVal + Scale *SQLVal + type Limit struct + Offset Expr + Rowcount Expr + func (node *Limit) Format(buf *TrackedBuffer) + type ListArg []byte + func (node ListArg) Format(buf *TrackedBuffer) + type MarginComments struct + Leading string + Trailing string + func SplitMarginComments(sql string) (query string, comments MarginComments) + type MatchExpr struct + Columns SelectExprs + Expr Expr + Option string + func (node *MatchExpr) Format(buf *TrackedBuffer) + type Nextval struct + Expr Expr + func (node Nextval) Format(buf *TrackedBuffer) + type NodeFormatter func(buf *TrackedBuffer, node SQLNode) + type NotExpr struct + Expr Expr + func (node *NotExpr) Format(buf *TrackedBuffer) + type NullVal struct + func (node *NullVal) Format(buf *TrackedBuffer) + type NumVal struct + func (exp *NumVal) AsUint64() uint64 + type OnDup UpdateExprs + func (node OnDup) Format(buf *TrackedBuffer) + type OptVal struct + Value Expr + func (node *OptVal) Format(buf *TrackedBuffer) + type OrExpr struct + Left Expr + Right Expr + func (node *OrExpr) Format(buf *TrackedBuffer) + type Order struct + Direction string + Expr Expr + func (node *Order) Format(buf *TrackedBuffer) + type OrderBy []*Order + func (node OrderBy) Format(buf *TrackedBuffer) + type OtherAdmin struct + func (node *OtherAdmin) Format(buf *TrackedBuffer) + type OtherRead struct + func (node *OtherRead) Format(buf *TrackedBuffer) + type ParenExpr struct + Expr Expr + func (node *ParenExpr) Format(buf *TrackedBuffer) + type ParenSelect struct + Select SelectStatement + func (node *ParenSelect) AddOrder(order *Order) + func (node *ParenSelect) Format(buf *TrackedBuffer) + func (node *ParenSelect) SetLimit(limit *Limit) + type ParenTableExpr struct + Exprs TableExprs + func (node *ParenTableExpr) Format(buf *TrackedBuffer) + type ParsedQuery struct + Query string + func BuildParsedQuery(in string, vars ...interface{}) *ParsedQuery + func NewParsedQuery(node SQLNode) *ParsedQuery + func (pq *ParsedQuery) GenerateQuery(bindVariables map[string]*querypb.BindVariable, extras map[string]Encodable) (string, error) + func (pq *ParsedQuery) MarshalJSON() ([]byte, error) + type PartitionDefinition struct + Backend string + Row ValTuple + type PartitionOptions []*PartitionDefinition + type Radon struct + Action string + NewName TableName + Row ValTuple + Table TableName + func (node *Radon) Format(buf *TrackedBuffer) + type RangeCond struct + From Expr + Left Expr + Operator string + To Expr + func (node *RangeCond) Format(buf *TrackedBuffer) + type SQLNode interface + Format func(buf *TrackedBuffer) + func Rewrite(node SQLNode, pre, post ApplyFunc) (result SQLNode) + type SQLVal struct + Type ValType + Val []byte + func NewFloatVal(in []byte) *SQLVal + func NewHexNum(in []byte) *SQLVal + func NewHexVal(in []byte) *SQLVal + func NewIntVal(in []byte) *SQLVal + func NewStrVal(in []byte) *SQLVal + func NewStrValWithoutQuote(in []byte) *SQLVal + func NewValArg(in []byte) *SQLVal + func (node *SQLVal) Format(buf *TrackedBuffer) + func (node *SQLVal) HexDecode() ([]byte, error) + type Select struct + Cache string + Comments Comments + Distinct string + ForBackup string + From TableExprs + GroupBy GroupBy + Having *Where + Hints string + Limit *Limit + Lock string + OrderBy OrderBy + SelectExprs SelectExprs + Where *Where + func (node *Select) AddHaving(expr Expr) + func (node *Select) AddOrder(order *Order) + func (node *Select) AddWhere(expr Expr) + func (node *Select) Format(buf *TrackedBuffer) + func (node *Select) SetLimit(limit *Limit) + type SelectExpr interface + func CloneSelectExpr(node SelectExpr) SelectExpr + type SelectExprs []SelectExpr + func (node SelectExprs) Format(buf *TrackedBuffer) + type SelectStatement interface + AddOrder func(*Order) + SetLimit func(*Limit) + type Set struct + Comments Comments + Exprs SetExprs + func (node *Set) Format(buf *TrackedBuffer) + type SetExpr struct + Scope string + Type ColIdent + Val SetVal + func (node *SetExpr) Format(buf *TrackedBuffer) + type SetExprs []*SetExpr + func (node SetExprs) Format(buf *TrackedBuffer) + type SetVal interface + type Show struct + Database TableName + Filter *ShowFilter + From string + Full string + Limit *Limit + Table TableName + Type string + func (node *Show) Format(buf *TrackedBuffer) + type ShowFilter struct + Filter Expr + Like string + func (node *ShowFilter) Format(buf *TrackedBuffer) + type SimpleTableExpr interface + type StarExpr struct + TableName TableName + func (node *StarExpr) Format(buf *TrackedBuffer) + type Statement interface + func Parse(sql string) (Statement, error) + func ParseStrictDDL(sql string) (Statement, error) + type Subquery struct + Select SelectStatement + func (node *Subquery) Format(buf *TrackedBuffer) + type TableExpr interface + type TableExprs []TableExpr + func (node TableExprs) Format(buf *TrackedBuffer) + type TableIdent struct + func GetTableName(node SimpleTableExpr) TableIdent + func NewTableIdent(str string) TableIdent + func (node *TableIdent) UnmarshalJSON(b []byte) error + func (node TableIdent) CompliantName() string + func (node TableIdent) Format(buf *TrackedBuffer) + func (node TableIdent) IsEmpty() bool + func (node TableIdent) MarshalJSON() ([]byte, error) + func (node TableIdent) String() string + type TableName struct + Name TableIdent + Qualifier TableIdent + func (node TableName) Format(buf *TrackedBuffer) + func (node TableName) IsEmpty() bool + type TableNames []TableName + func (node TableNames) Format(buf *TrackedBuffer) + type TableOption struct + Type TableOptionType + Val *SQLVal + type TableOptionListOpt struct + TblOptList []*TableOption + func (tblOptList *TableOptionListOpt) CheckIfTableOptDuplicate() string + func (tblOptList *TableOptionListOpt) GetTableOptValByType(optType TableOptionType) *SQLVal + type TableOptionType int + const TableOptionAutoInc + const TableOptionAvgRowLength + const TableOptionCharset + const TableOptionChecksum + const TableOptionCollate + const TableOptionComment + const TableOptionCompression + const TableOptionConnection + const TableOptionDataDirectory + const TableOptionDelayKeyWrite + const TableOptionEncryption + const TableOptionEngine + const TableOptionIndexDirectory + const TableOptionInsertMethod + const TableOptionKeyBlockSize + const TableOptionMaxRows + const TableOptionMinRows + const TableOptionNone + const TableOptionPackKeys + const TableOptionPassword + const TableOptionRowFormat + const TableOptionStatsAutoRecalc + const TableOptionStatsPersistent + const TableOptionStatsSamplePages + const TableOptionTableSpace + const TableOptionTableType + type TableOptions struct + AvgRowLength string + Charset string + Checksum string + Collate string + Comment string + Compression string + Connection string + DataDirectory string + DelayKeyWrite string + Encryption string + Engine string + IndexDirectory string + InsertMethod string + KeyBlockSize string + MaxRows string + MinRows string + PackKeys string + Password string + RowFormat string + StatsAutoRecalc string + StatsPersistent string + StatsSamplePages string + TableSpace string + Type string + func (opts TableOptions) Format(buf *TrackedBuffer) + type TableSpec struct + Columns []*ColumnDefinition + Indexes []*IndexDefinition + Options TableOptions + func (ts *TableSpec) AddColumn(cd *ColumnDefinition) + func (ts *TableSpec) AddIndex(id *IndexDefinition) + func (ts *TableSpec) Format(buf *TrackedBuffer) + type Tokenizer struct + AllowComments bool + ForceEOF bool + InStream *strings.Reader + LastError string + ParseTree Statement + Position int + func NewStringTokenizer(sql string) *Tokenizer + func (tkn *Tokenizer) Error(err string) + func (tkn *Tokenizer) Lex(lval *yySymType) int + func (tkn *Tokenizer) Scan() (int, []byte) + type TrackedBuffer struct + func NewTrackedBuffer(nodeFormatter NodeFormatter) *TrackedBuffer + func (buf *TrackedBuffer) HasBindVars() bool + func (buf *TrackedBuffer) Myprintf(format string, values ...interface{}) + func (buf *TrackedBuffer) ParsedQuery() *ParsedQuery + func (buf *TrackedBuffer) WriteArg(arg string) + func (buf *TrackedBuffer) WriteNode(node SQLNode) *TrackedBuffer + type Transaction struct + Action string + func (node *Transaction) Format(buf *TrackedBuffer) + type TupleEqualityList struct + Columns []ColIdent + Rows [][]sqltypes.Value + func (tpl *TupleEqualityList) EncodeSQL(buf *strings.Builder) + type TxnVal struct + Level string + Mode string + func (node *TxnVal) Format(buf *TrackedBuffer) + type UnaryExpr struct + Expr Expr + Operator string + func (node *UnaryExpr) Format(buf *TrackedBuffer) + type Union struct + Left SelectStatement + Limit *Limit + Lock string + OrderBy OrderBy + Right SelectStatement + Type string + func (node *Union) AddOrder(order *Order) + func (node *Union) Format(buf *TrackedBuffer) + func (node *Union) SetLimit(limit *Limit) + type Update struct + Comments Comments + Exprs UpdateExprs + Limit *Limit + OrderBy OrderBy + Table TableName + Where *Where + func (node *Update) Format(buf *TrackedBuffer) + type UpdateExpr struct + Expr Expr + Name *ColName + func (node *UpdateExpr) Format(buf *TrackedBuffer) + type UpdateExprs []*UpdateExpr + func (node UpdateExprs) Format(buf *TrackedBuffer) + type Use struct + DBName TableIdent + func (node *Use) Format(buf *TrackedBuffer) + type ValTuple Exprs + func (node ValTuple) Format(buf *TrackedBuffer) + type ValType int + type Values []ValTuple + func (node Values) Format(buf *TrackedBuffer) + type ValuesFuncExpr struct + Name ColIdent + Resolved Expr + func (node *ValuesFuncExpr) Format(buf *TrackedBuffer) + type Visit func(node SQLNode) (kontinue bool, err error) + type When struct + Cond Expr + Val Expr + func (node *When) Format(buf *TrackedBuffer) + type Where struct + Expr Expr + Type string + func NewWhere(typ string, expr Expr) *Where + func (node *Where) Format(buf *TrackedBuffer) + type Xa struct + func (node *Xa) Format(buf *TrackedBuffer)