getters

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NULL = "NULL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Constant

type Constant struct {
	// contains filtered or unexported fields
}

Constant Getter. Used for debugging

func NewConstant

func NewConstant(value interface{}) *Constant

func (*Constant) Quote

func (r *Constant) Quote() string

func (*Constant) String

func (r *Constant) String() string

func (*Constant) Value

func (r *Constant) Value() interface{}

type RandomBinary

type RandomBinary struct {
	// contains filtered or unexported fields
}

RandomBinary getter

func NewRandomBinary

func NewRandomBinary(name string, maxSize int64, allowNull bool) *RandomBinary

func (*RandomBinary) Quote

func (r *RandomBinary) Quote() string

func (*RandomBinary) String

func (r *RandomBinary) String() string

func (*RandomBinary) Value

func (r *RandomBinary) Value() interface{}

type RandomDate

type RandomDate struct {
	// contains filtered or unexported fields
}

func NewRandomDate

func NewRandomDate(name string, allowNull bool) *RandomDate

func (*RandomDate) Quote

func (r *RandomDate) Quote() string

func (*RandomDate) String

func (r *RandomDate) String() string

func (*RandomDate) Value

func (r *RandomDate) Value() interface{}

type RandomDateInRange

type RandomDateInRange struct {
	// contains filtered or unexported fields
}

func NewRandomDateInRange

func NewRandomDateInRange(name string, min, max string, allowNull bool) *RandomDateInRange

func NewRandomDateTime

func NewRandomDateTime(name string, allowNull bool) *RandomDateInRange

NewRandomDateTime returns a new random datetime between Now() and Now() - 1 year

func NewRandomDateTimeInRange

func NewRandomDateTimeInRange(name string, min, max string, allowNull bool) *RandomDateInRange

NewRandomDateTimeInRange returns a new random date in the specified range

func (*RandomDateInRange) Quote

func (r *RandomDateInRange) Quote() string

func (*RandomDateInRange) String

func (r *RandomDateInRange) String() string

func (*RandomDateInRange) Value

func (r *RandomDateInRange) Value() interface{}

type RandomDateTimeInRange

type RandomDateTimeInRange struct {
	// contains filtered or unexported fields
}

func (*RandomDateTimeInRange) Quote

func (r *RandomDateTimeInRange) Quote() string

Quote returns the value quoted for MySQL

func (*RandomDateTimeInRange) String

func (r *RandomDateTimeInRange) String() string

func (*RandomDateTimeInRange) Value

func (r *RandomDateTimeInRange) Value() interface{}

Value returns a random time.Time in the range specified by the New method

type RandomDecimal

type RandomDecimal struct {
	// contains filtered or unexported fields
}

RandomDecimal holds unexported data for decimal values

func NewRandomDecimal

func NewRandomDecimal(name string, size int64, allowNull bool) *RandomDecimal

func (*RandomDecimal) Quote

func (r *RandomDecimal) Quote() string

func (*RandomDecimal) String

func (r *RandomDecimal) String() string

func (*RandomDecimal) Value

func (r *RandomDecimal) Value() interface{}

type RandomEnum

type RandomEnum struct {
	// contains filtered or unexported fields
}

RandomEnum Getter

func NewRandomEnum

func NewRandomEnum(allowedValues []string, allowNull bool) *RandomEnum

func (*RandomEnum) Quote

func (r *RandomEnum) Quote() string

func (*RandomEnum) String

func (r *RandomEnum) String() string

func (*RandomEnum) Value

func (r *RandomEnum) Value() interface{}

type RandomInt

type RandomInt struct {
	// contains filtered or unexported fields
}

func NewRandomInt

func NewRandomInt(name string, mask int64, allowNull bool) *RandomInt

func (*RandomInt) Quote

func (r *RandomInt) Quote() string

func (*RandomInt) String

func (r *RandomInt) String() string

func (*RandomInt) Value

func (r *RandomInt) Value() interface{}

type RandomIntRange

type RandomIntRange struct {
	// contains filtered or unexported fields
}

func NewRandomIntRange

func NewRandomIntRange(name string, min, max int64, allowNull bool) *RandomIntRange

func NewRandomYear

func NewRandomYear(name string, format int, allowNull bool) *RandomIntRange

func NewRandomYearRange

func NewRandomYearRange(name string, min, max int64, allowNull bool) *RandomIntRange

func (*RandomIntRange) Quote

func (r *RandomIntRange) Quote() string

func (*RandomIntRange) String

func (r *RandomIntRange) String() string

func (*RandomIntRange) Value

func (r *RandomIntRange) Value() interface{}

type RandomSample

type RandomSample struct {
	// contains filtered or unexported fields
}

func NewRandomSample

func NewRandomSample(name string, samples []interface{}, allowNull bool) *RandomSample

func (*RandomSample) Quote

func (r *RandomSample) Quote() string

func (*RandomSample) String

func (r *RandomSample) String() string

func (*RandomSample) Value

func (r *RandomSample) Value() interface{}

type RandomString

type RandomString struct {
	// contains filtered or unexported fields
}

RandomString getter

func NewRandomString

func NewRandomString(name string, maxSize int64, allowNull bool) *RandomString

func (*RandomString) Quote

func (r *RandomString) Quote() string

func (*RandomString) String

func (r *RandomString) String() string

func (*RandomString) Value

func (r *RandomString) Value() interface{}

type RandomTime

type RandomTime struct {
	// contains filtered or unexported fields
}

RandomTime Getter

func NewRandomTime

func NewRandomTime(allowNull bool) *RandomTime

func (*RandomTime) Quote

func (r *RandomTime) Quote() string

func (*RandomTime) String

func (r *RandomTime) String() string

func (*RandomTime) Value

func (r *RandomTime) Value() interface{}

Jump to

Keyboard shortcuts

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