Documentation
¶
Index ¶
- Constants
- func AsBool(d Datum) bool
- func AsBytes(d Datum) []byte
- func AsDecimal(d Datum) *apd.Decimal
- func AsFloat(d Datum) float64
- func AsInt(d Datum) int64
- func AsString(d Datum) string
- func ParseTimeOrTimeTZ(s string) (*Time, *TimeTZ, error)
- func ParseTimestampOrTimestampTZ(s string) (*Timestamp, *TimestampTZ, error)
- func TryAsBool(d Datum) (bool, error)
- func TryAsBytes(d Datum) ([]byte, error)
- func TryAsDecimal(d Datum) (*apd.Decimal, error)
- func TryAsFloat(d Datum) (float64, error)
- func TryAsInt(d Datum) (int64, error)
- func TryAsString(d Datum) (string, error)
- type Date
- type Datum
- type Edge
- type Interval
- type IntervalUnit
- type Row
- type Time
- type TimeOfDay
- type TimeTZ
- type Timestamp
- type TimestampTZ
- type Vertex
Constants ¶
View Source
const Null = dNull(0)
Variables ¶
This section is empty.
Functions ¶
func ParseTimestampOrTimestampTZ ¶
func ParseTimestampOrTimestampTZ(s string) (*Timestamp, *TimestampTZ, error)
func TryAsBytes ¶
func TryAsDecimal ¶
func TryAsFloat ¶
func TryAsString ¶
Types ¶
type Date ¶
type Date struct {
// contains filtered or unexported fields
}
func (*Date) UnixEpochDays ¶
type Interval ¶
type Interval struct {
// contains filtered or unexported fields
}
func AsInterval ¶
func NewInterval ¶
func NewInterval(dur int64, unit IntervalUnit) *Interval
func TryAsInterval ¶
type IntervalUnit ¶
type IntervalUnit uint8
const ( IntervalUnitYear IntervalUnit = iota IntervalUnitMonth IntervalUnitDay IntervalUnitHour IntervalUnitMinute IntervalUnitSecond )
type TimeTZ ¶
type TimeTZ struct { TimeOfDay // contains filtered or unexported fields }
func ParseTimeTZ ¶
func TryAsTimeTZ ¶
type TimestampTZ ¶
func AsTimestampTZ ¶
func AsTimestampTZ(d Datum) *TimestampTZ
func ParseTimestampTZ ¶
func ParseTimestampTZ(s string) (*TimestampTZ, error)
func TryAsTimestampTZ ¶
func TryAsTimestampTZ(d Datum) (*TimestampTZ, error)
func (*TimestampTZ) String ¶
func (t *TimestampTZ) String() string
func (*TimestampTZ) Type ¶
func (t *TimestampTZ) Type() types.T
type Vertex ¶
func TryAsVertex ¶
Click to show internal directories.
Click to hide internal directories.