types

package
v0.9.71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBitCol

func NewBitCol(col string) *bitCol

func NewBlobCol

func NewBlobCol(col string, length uint32) *blobCol

func NewDateTimeCol

func NewDateTimeCol(col string) *datetimeCol

func NewDecimalCol

func NewDecimalCol(colType string) *decimalCol

func NewFloatCol

func NewFloatCol(colType string) *floatCol

func NewIntegerColumn

func NewIntegerColumn(colType string, signed bool, bytes int) *integerColumn

func NewJSONCol added in v0.9.42

func NewJSONCol(colType string) *jsonCol

JSON column is not used right now. MySQL 5.7 has bug on checksum for json column.

func NewStringCol

func NewStringCol(col string) *stringCol

func NewTextCol

func NewTextCol(col string, bytes uint32) *stringCol

func NewTimestampCol

func NewTimestampCol(col string) *timestampCol

func Nullable

func Nullable(c ColumnValGenerator) *nullableCol

Types

type ColumnValGenerator

type ColumnValGenerator interface {
	ColType() string
	Generate(r *rand.Rand) interface{}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL