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
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 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{}
Click to show internal directories.
Click to hide internal directories.