Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TypeInt represents the template context of types.ETInt . TypeInt = TypeContext{ETName: "Int", TypeName: "Int", TypeNameInColumn: "Int64", TypeNameGo: "int64", Fixed: true} // TypeReal represents the template context of types.ETReal . TypeReal = TypeContext{ETName: "Real", TypeName: "Real", TypeNameInColumn: "Float64", TypeNameGo: "float64", Fixed: true} // TypeDecimal represents the template context of types.ETDecimal . TypeDecimal = TypeContext{ETName: "Decimal", TypeName: "Decimal", TypeNameInColumn: "Decimal", TypeNameGo: "types.MyDecimal", Fixed: true} // TypeString represents the template context of types.ETString . TypeString = TypeContext{ETName: "String", TypeName: "String", TypeNameInColumn: "String", TypeNameGo: "string", Fixed: false} // TypeDatetime represents the template context of types.ETDatetime . TypeDatetime = TypeContext{ETName: "Datetime", TypeName: "Time", TypeNameInColumn: "Time", TypeNameGo: "types.Time", Fixed: true} // TypeDuration represents the template context of types.ETDuration . TypeDuration = TypeContext{ETName: "Duration", TypeName: "Duration", TypeNameInColumn: "GoDuration", TypeNameGo: "time.Duration", Fixed: true} // TypeJSON represents the template context of types.ETJson . TypeJSON = TypeContext{ETName: "Json", TypeName: "JSON", TypeNameInColumn: "JSON", TypeNameGo: "json.BinaryJSON", Fixed: false} )
Functions ¶
This section is empty.
Types ¶
type TypeContext ¶
type TypeContext struct { // Describe the name of "github.com/pingcap/tidb/pkg/types".ET{{ .ETName }} . ETName string // Describe the name of "github.com/pingcap/tidb/pkg/expression".VecExpr.VecEval{{ .TypeName }} . TypeName string // Describe the name of "github.com/pingcap/tidb/pkg/util/chunk".*Column.Append{{ .TypeNameInColumn }}, // Resize{{ .TypeNameInColumn }}, Reserve{{ .TypeNameInColumn }}, Get{{ .TypeNameInColumn }} and // {{ .TypeNameInColumn }}s. // If undefined, it's same as TypeName. TypeNameInColumn string // Describe the type name in golang. TypeNameGo string // Same as "github.com/pingcap/tidb/pkg/util/chunk".getFixedLen() . Fixed bool }
TypeContext is the template context for each "github.com/pingcap/tidb/pkg/types".EvalType .
Click to show internal directories.
Click to hide internal directories.