Documentation ¶
Index ¶
- Variables
- func Compare(p1 Primary, p2 Primary, operator string, datetimeFormats []string) ternary.Value
- func CompareRowValues(rowValue1 RowValue, rowValue2 RowValue, operator string, ...) (ternary.Value, error)
- func ConvertDatetimeFormat(format string) string
- func Discard(p Primary)
- func Equal(p1 Primary, p2 Primary, datetimeFormats []string) ternary.Value
- func Equivalent(p1 Primary, p2 Primary, datetimeFormats []string) ternary.Value
- func Float64ToStr(f float64) string
- func Float64ToTime(f float64) time.Time
- func Greater(p1 Primary, p2 Primary, datetimeFormats []string) ternary.Value
- func GreaterOrEqual(p1 Primary, p2 Primary, datetimeFormats []string) ternary.Value
- func Identical(p1 Primary, p2 Primary) ternary.Value
- func Int64ToStr(i int64) string
- func IsFalse(v Primary) bool
- func IsNull(v Primary) bool
- func IsTrue(v Primary) bool
- func IsUnknown(v Primary) bool
- func Less(p1 Primary, p2 Primary, datetimeFormats []string) ternary.Value
- func LessOrEqual(p1 Primary, p2 Primary, datetimeFormats []string) ternary.Value
- func MaybeInteger(s string) bool
- func MaybeNumber(s string) bool
- func NotEqual(p1 Primary, p2 Primary, datetimeFormats []string) ternary.Value
- func StrToTime(s string, formats []string) (time.Time, bool)
- func TimeFromUnixTime(sec int64, nano int64) time.Time
- type Boolean
- type ComparisonResult
- type Datetime
- type DatetimeFormatMap
- type Float
- type Integer
- type Null
- type Primary
- type RowValue
- type String
- type Ternary
Constants ¶
This section is empty.
Variables ¶
View Source
var DatetimeFormats = NewDatetimeFormatMap()
Functions ¶
func CompareRowValues ¶
func ConvertDatetimeFormat ¶
func Float64ToStr ¶
func Float64ToTime ¶
func GreaterOrEqual ¶
func Int64ToStr ¶
func MaybeInteger ¶ added in v1.10.3
func MaybeNumber ¶ added in v1.10.3
Types ¶
type ComparisonResult ¶
type ComparisonResult int
const ( IsEqual ComparisonResult = iota IsBoolEqual IsNotEqual IsLess IsGreater IsIncommensurable )
func CompareCombinedly ¶
func CompareCombinedly(p1 Primary, p2 Primary, datetimeFormats []string) ComparisonResult
func (ComparisonResult) String ¶
func (cr ComparisonResult) String() string
type Datetime ¶
type Datetime struct {
// contains filtered or unexported fields
}
func NewDatetime ¶
func NewDatetimeFromString ¶
type DatetimeFormatMap ¶
type DatetimeFormatMap struct {
// contains filtered or unexported fields
}
func NewDatetimeFormatMap ¶ added in v1.9.3
func NewDatetimeFormatMap() *DatetimeFormatMap
func (DatetimeFormatMap) Get ¶
func (dfmap DatetimeFormatMap) Get(s string) string
func (*DatetimeFormatMap) Load ¶ added in v1.9.3
func (dfmap *DatetimeFormatMap) Load(key string) (string, bool)
func (*DatetimeFormatMap) Store ¶ added in v1.9.3
func (dfmap *DatetimeFormatMap) Store(key string, value string)
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
func NewFloatFromString ¶
type Integer ¶
type Integer struct {
// contains filtered or unexported fields
}
func NewInteger ¶
func NewIntegerFromString ¶
type Ternary ¶
type Ternary struct {
// contains filtered or unexported fields
}
func NewTernary ¶
func NewTernaryFromString ¶
Click to show internal directories.
Click to hide internal directories.