Documentation ¶
Index ¶
- func NewBool(value bool) (expr.Literal, error)
- func NewDate(days int) (expr.Literal, error)
- func NewDecimalFromString(value string) (expr.Literal, error)
- func NewDecimalFromTwosComplement(twosComplement []byte, precision, scale int32) (expr.Literal, error)
- func NewFixedBinary(value []byte) (expr.Literal, error)
- func NewFixedChar(value string) (expr.Literal, error)
- func NewFloat32(value float32) (expr.Literal, error)
- func NewFloat64(value float64) (expr.Literal, error)
- func NewInt16(value int16) (expr.Literal, error)
- func NewInt32(value int32) (expr.Literal, error)
- func NewInt64(value int64) (expr.Literal, error)
- func NewInt8(value int8) (expr.Literal, error)
- func NewIntervalDaysToSecond(days, seconds int32, micros int64) (expr.Literal, error)
- func NewIntervalYearsToMonth(years, months int32) (expr.Literal, error)
- func NewPrecisionTimestamp(precision types.TimePrecision, value int64) (expr.Literal, error)
- func NewPrecisionTimestampFromTime(precision types.TimePrecision, tm time.Time) (expr.Literal, error)
- func NewPrecisionTimestampTz(precision types.TimePrecision, value int64) (expr.Literal, error)
- func NewPrecisionTimestampTzFromTime(precision types.TimePrecision, tm time.Time) (expr.Literal, error)
- func NewString(value string) (expr.Literal, error)
- func NewTime(hours, minutes, seconds, microseconds int32) (expr.Literal, error)
- func NewTimeFromMicros(micros int64) (expr.Literal, error)
- func NewTimestamp(timestamp time.Time) (expr.Literal, error)
- func NewTimestampFromMicros(micros int64) (expr.Literal, error)
- func NewTimestampTZ(timestamp time.Time) (expr.Literal, error)
- func NewTimestampTZFromMicros(micros int64) (expr.Literal, error)
- func NewUUID(guid uuid.UUID) (expr.Literal, error)
- func NewUUIDFromBytes(value []byte) (expr.Literal, error)
- func NewVarChar(value string) (expr.Literal, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDecimalFromString ¶
NewDecimalFromString create a Decimal literal from decimal value string
func NewDecimalFromTwosComplement ¶
func NewDecimalFromTwosComplement(twosComplement []byte, precision, scale int32) (expr.Literal, error)
NewDecimalFromTwosComplement create a Decimal literal from twosComplement. twosComplement is a little-endian twos-complement integer representation of complete value
func NewIntervalDaysToSecond ¶
func NewIntervalYearsToMonth ¶
func NewPrecisionTimestamp ¶
NewPrecisionTimestamp creates a new PrecisionTimestamp literal with given precision and value.
func NewPrecisionTimestampFromTime ¶
func NewPrecisionTimestampFromTime(precision types.TimePrecision, tm time.Time) (expr.Literal, error)
NewPrecisionTimestampFromTime creates a new PrecisionTimestamp literal from a time.Time timestamp value with given precision.
func NewPrecisionTimestampTz ¶
NewPrecisionTimestampTz creates a new PrecisionTimestampTz literal with given precision and value.
func NewPrecisionTimestampTzFromTime ¶
func NewPrecisionTimestampTzFromTime(precision types.TimePrecision, tm time.Time) (expr.Literal, error)
NewPrecisionTimestampTzFromTime creates a new PrecisionTimestampTz literal from a time.Time timestamp value with given precision.
func NewTime ¶
NewTime creates a new Time literal from the given hours, minutes, seconds and microseconds. The total microseconds should be in the range [0, 86400_000_000) to represent a valid time within a day.
func NewTimeFromMicros ¶
NewTimeFromMicros creates a new Time literal from the given microseconds.
func NewTimestamp ¶
NewTimestamp creates a new Timestamp literal from a time.Time timestamp value. This uses the number of microseconds elapsed since January 1, 1970 00:00:00 UTC
func NewTimestampTZ ¶
NewTimestampTZ creates a new TimestampTz literal from a time.Time timestamp value. This uses the number of microseconds elapsed since January 1, 1970 00:00:00 UTC
Types ¶
This section is empty.