Datatypes

DateDuration represents the elapsed time between two dates in a fuzzy human way.

  1. type DateDuration struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewDateDuration(months int32, days int32) DateDuration

NewDateDuration returns a new DateDuration

  1. func (dd DateDuration) MarshalText() ([]byte, error)

MarshalText returns rd marshaled as text.

  1. func (dd DateDuration) String() string
  1. func (dd *DateDuration) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *rd.

Duration represents the elapsed time between two instants as an int64 microsecond count.

  1. type Duration int64
  1. func ParseDuration(s string) (Duration, error)

ParseDuration parses an EdgeDB duration string.

  1. func (d Duration) String() string

LocalDate is a date without a time zone. https://www.edgedb.com/docs/stdlib/datetime#type::cal::local_date

  1. type LocalDate struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewLocalDate(year int, month time.Month, day int) LocalDate

NewLocalDate returns a new LocalDate

  1. func (d LocalDate) MarshalText() ([]byte, error)

MarshalText returns d marshaled as text.

  1. func (d LocalDate) String() string
  1. func (d *LocalDate) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *d.

LocalDateTime is a date and time without timezone. https://www.edgedb.com/docs/stdlib/datetime#type::cal::local_datetime

  1. type LocalDateTime struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewLocalDateTime(
  2. year int, month time.Month, day, hour, minute, second, microsecond int,
  3. ) LocalDateTime

NewLocalDateTime returns a new LocalDateTime

  1. func (dt LocalDateTime) MarshalText() ([]byte, error)

MarshalText returns dt marshaled as text.

  1. func (dt LocalDateTime) String() string
  1. func (dt *LocalDateTime) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *dt.

LocalTime is a time without a time zone. https://www.edgedb.com/docs/stdlib/datetime#type::cal::local_time

  1. type LocalTime struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewLocalTime(hour, minute, second, microsecond int) LocalTime

NewLocalTime returns a new LocalTime

  1. func (t LocalTime) MarshalText() ([]byte, error)

MarshalText returns t marshaled as text.

  1. func (t LocalTime) String() string
  1. func (t *LocalTime) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *t.

Memory represents memory in bytes.

  1. type Memory int64
  1. func (m Memory) MarshalText() ([]byte, error)

MarshalText returns m marshaled as text.

  1. func (m Memory) String() string
  1. func (m *Memory) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *m.

Optional represents a shape field that is not required.

  1. type Optional struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o *Optional) Missing() bool

Missing returns true if the value is missing.

  1. func (o *Optional) SetMissing(missing bool)

SetMissing sets the structs missing status. true means missing and false means present.

  1. func (o *Optional) Unset()

Unset marks the value as missing

OptionalBigInt is an optional *big.Int. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalBigInt struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalBigInt) Get() (*big.Int, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalBigInt) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalBigInt) Set(val *big.Int)

Set sets the value.

  1. func (o *OptionalBigInt) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalBigInt) Unset()

Unset marks the value as missing.

OptionalBool is an optional bool. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalBool struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalBool) Get() (bool, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalBool) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalBool) Set(val bool)

Set sets the value.

  1. func (o *OptionalBool) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalBool) Unset()

Unset marks the value as missing.

OptionalBytes is an optional []byte. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalBytes struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalBytes) Get() ([]byte, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalBytes) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalBytes) Set(val []byte)

Set sets the value.

  1. func (o *OptionalBytes) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalBytes) Unset()

Unset marks the value as missing.

OptionalDateDuration is an optional DateDuration. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalDateDuration struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o *OptionalDateDuration) Get() (DateDuration, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalDateDuration) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalDateDuration) Set(val DateDuration)

Set sets the value.

  1. func (o *OptionalDateDuration) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalDateDuration) Unset()

Unset marks the value as missing.

OptionalDateTime is an optional time.Time. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalDateTime struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalDateTime) Get() (time.Time, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalDateTime) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalDateTime) Set(val time.Time)

Set sets the value.

  1. func (o *OptionalDateTime) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalDateTime) Unset()

Unset marks the value as missing.

OptionalDuration is an optional Duration. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalDuration struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalDuration) Get() (Duration, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalDuration) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalDuration) Set(val Duration)

Set sets the value.

  1. func (o *OptionalDuration) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalDuration) Unset()

Unset marks the value as missing.

OptionalFloat32 is an optional float32. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalFloat32 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalFloat32) Get() (float32, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalFloat32) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalFloat32) Set(val float32)

Set sets the value.

  1. func (o *OptionalFloat32) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalFloat32) Unset()

Unset marks the value as missing.

OptionalFloat64 is an optional float64. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalFloat64 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalFloat64) Get() (float64, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalFloat64) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalFloat64) Set(val float64)

Set sets the value.

  1. func (o *OptionalFloat64) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalFloat64) Unset()

Unset marks the value as missing.

OptionalInt16 is an optional int16. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalInt16 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalInt16) Get() (int16, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalInt16) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalInt16) Set(val int16)

Set sets the value.

  1. func (o *OptionalInt16) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalInt16) Unset()

Unset marks the value as missing.

OptionalInt32 is an optional int32. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalInt32 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalInt32) Get() (int32, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalInt32) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalInt32) Set(val int32)

Set sets the value.

  1. func (o *OptionalInt32) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalInt32) Unset()

Unset marks the value as missing.

OptionalInt64 is an optional int64. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalInt64 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalInt64) Get() (int64, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalInt64) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalInt64) Set(val int64) *OptionalInt64

Set sets the value.

  1. func (o *OptionalInt64) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalInt64) Unset() *OptionalInt64

Unset marks the value as missing.

OptionalLocalDate is an optional LocalDate. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalLocalDate struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalLocalDate) Get() (LocalDate, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalLocalDate) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalLocalDate) Set(val LocalDate)

Set sets the value.

  1. func (o *OptionalLocalDate) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalLocalDate) Unset()

Unset marks the value as missing.

OptionalLocalDateTime is an optional LocalDateTime. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalLocalDateTime struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalLocalDateTime) Get() (LocalDateTime, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalLocalDateTime) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalLocalDateTime) Set(val LocalDateTime)

Set sets the value.

  1. func (o *OptionalLocalDateTime) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalLocalDateTime) Unset()

Unset marks the value as missing.

OptionalLocalTime is an optional LocalTime. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalLocalTime struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalLocalTime) Get() (LocalTime, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalLocalTime) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalLocalTime) Set(val LocalTime)

Set sets the value.

  1. func (o *OptionalLocalTime) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalLocalTime) Unset()

Unset marks the value as missing.

OptionalMemory is an optional Memory. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalMemory struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalMemory) Get() (Memory, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalMemory) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalMemory) Set(val Memory)

Set sets the value.

  1. func (o *OptionalMemory) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalMemory) Unset()

Unset marks the value as missing.

OptionalRangeDateTime is an optional RangeDateTime. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalRangeDateTime struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalRangeDateTime) Get() (RangeDateTime, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalRangeDateTime) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalRangeDateTime) Set(val RangeDateTime)

Set sets the value.

  1. func (o *OptionalRangeDateTime) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalRangeDateTime) Unset()

Unset marks the value as missing.

OptionalRangeFloat32 is an optional RangeFloat32. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalRangeFloat32 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalRangeFloat32) Get() (RangeFloat32, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalRangeFloat32) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalRangeFloat32) Set(val RangeFloat32)

Set sets the value.

  1. func (o *OptionalRangeFloat32) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalRangeFloat32) Unset()

Unset marks the value as missing.

OptionalRangeFloat64 is an optional RangeFloat64. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalRangeFloat64 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalRangeFloat64) Get() (RangeFloat64, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalRangeFloat64) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalRangeFloat64) Set(val RangeFloat64)

Set sets the value.

  1. func (o *OptionalRangeFloat64) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalRangeFloat64) Unset()

Unset marks the value as missing.

OptionalRangeInt32 is an optional RangeInt32. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalRangeInt32 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalRangeInt32) Get() (RangeInt32, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalRangeInt32) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalRangeInt32) Set(val RangeInt32)

Set sets the value.

  1. func (o *OptionalRangeInt32) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalRangeInt32) Unset()

Unset marks the value as missing.

OptionalRangeInt64 is an optional RangeInt64. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalRangeInt64 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalRangeInt64) Get() (RangeInt64, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalRangeInt64) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalRangeInt64) Set(val RangeInt64)

Set sets the value.

  1. func (o *OptionalRangeInt64) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalRangeInt64) Unset()

Unset marks the value as missing.

OptionalRangeLocalDate is an optional RangeLocalDate. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalRangeLocalDate struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalRangeLocalDate) Get() (RangeLocalDate, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalRangeLocalDate) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalRangeLocalDate) Set(val RangeLocalDate)

Set sets the value.

  1. func (o *OptionalRangeLocalDate) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalRangeLocalDate) Unset()

Unset marks the value as missing.

OptionalRangeLocalDateTime is an optional RangeLocalDateTime. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalRangeLocalDateTime struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalRangeLocalDateTime) Get() (RangeLocalDateTime, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalRangeLocalDateTime) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalRangeLocalDateTime) Set(val RangeLocalDateTime)

Set sets the value.

  1. func (o *OptionalRangeLocalDateTime) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalRangeLocalDateTime) Unset()

Unset marks the value as missing.

OptionalRelativeDuration is an optional RelativeDuration. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalRelativeDuration struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalRelativeDuration) Get() (RelativeDuration, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalRelativeDuration) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalRelativeDuration) Set(val RelativeDuration)

Set sets the value.

  1. func (o *OptionalRelativeDuration) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalRelativeDuration) Unset()

Unset marks the value as missing.

OptionalStr is an optional string. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalStr struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalStr) Get() (string, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalStr) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalStr) Set(val string)

Set sets the value.

  1. func (o *OptionalStr) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o.

  1. func (o *OptionalStr) Unset()

Unset marks the value as missing.

OptionalUUID is an optional UUID. Optional types must be used for out parameters when a shape field is not required.

  1. type OptionalUUID struct {
  2. // contains filtered or unexported fields
  3. }
  1. func (o OptionalUUID) Get() (UUID, bool)

Get returns the value and a boolean indicating if the value is present.

  1. func (o OptionalUUID) MarshalJSON() ([]byte, error)

MarshalJSON returns o marshaled as json.

  1. func (o *OptionalUUID) Set(val UUID)

Set sets the value.

  1. func (o *OptionalUUID) UnmarshalJSON(bytes []byte) error

UnmarshalJSON unmarshals bytes into *o

  1. func (o *OptionalUUID) Unset()

Unset marks the value as missing.

RangeDateTime is an interval of time.Time values.

  1. type RangeDateTime struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewRangeDateTime(
  2. lower, upper OptionalDateTime,
  3. incLower, incUpper bool,
  4. ) RangeDateTime

NewRangeDateTime creates a new RangeDateTime value.

  1. func (r RangeDateTime) Empty() bool

Empty returns true if the range is empty.

  1. func (r RangeDateTime) IncLower() bool

IncLower returns true if the lower bound is inclusive.

  1. func (r RangeDateTime) IncUpper() bool

IncUpper returns true if the upper bound is inclusive.

  1. func (r RangeDateTime) Lower() OptionalDateTime

Lower returns the lower bound.

  1. func (r RangeDateTime) MarshalJSON() ([]byte, error)

MarshalJSON returns r marshaled as json.

  1. func (r *RangeDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals bytes into *r.

  1. func (r RangeDateTime) Upper() OptionalDateTime

Upper returns the upper bound.

RangeFloat32 is an interval of float32 values.

  1. type RangeFloat32 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewRangeFloat32(
  2. lower, upper OptionalFloat32,
  3. incLower, incUpper bool,
  4. ) RangeFloat32

NewRangeFloat32 creates a new RangeFloat32 value.

  1. func (r RangeFloat32) Empty() bool

Empty returns true if the range is empty.

  1. func (r RangeFloat32) IncLower() bool

IncLower returns true if the lower bound is inclusive.

  1. func (r RangeFloat32) IncUpper() bool

IncUpper returns true if the upper bound is inclusive.

  1. func (r RangeFloat32) Lower() OptionalFloat32

Lower returns the lower bound.

  1. func (r RangeFloat32) MarshalJSON() ([]byte, error)

MarshalJSON returns r marshaled as json.

  1. func (r *RangeFloat32) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals bytes into *r.

  1. func (r RangeFloat32) Upper() OptionalFloat32

Upper returns the upper bound.

RangeFloat64 is an interval of float64 values.

  1. type RangeFloat64 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewRangeFloat64(
  2. lower, upper OptionalFloat64,
  3. incLower, incUpper bool,
  4. ) RangeFloat64

NewRangeFloat64 creates a new RangeFloat64 value.

  1. func (r RangeFloat64) Empty() bool

Empty returns true if the range is empty.

  1. func (r RangeFloat64) IncLower() bool

IncLower returns true if the lower bound is inclusive.

  1. func (r RangeFloat64) IncUpper() bool

IncUpper returns true if the upper bound is inclusive.

  1. func (r RangeFloat64) Lower() OptionalFloat64

Lower returns the lower bound.

  1. func (r RangeFloat64) MarshalJSON() ([]byte, error)

MarshalJSON returns r marshaled as json.

  1. func (r *RangeFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals bytes into *r.

  1. func (r RangeFloat64) Upper() OptionalFloat64

Upper returns the upper bound.

RangeInt32 is an interval of int32 values.

  1. type RangeInt32 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewRangeInt32(
  2. lower, upper OptionalInt32,
  3. incLower, incUpper bool,
  4. ) RangeInt32

NewRangeInt32 creates a new RangeInt32 value.

  1. func (r RangeInt32) Empty() bool

Empty returns true if the range is empty.

  1. func (r RangeInt32) IncLower() bool

IncLower returns true if the lower bound is inclusive.

  1. func (r RangeInt32) IncUpper() bool

IncUpper returns true if the upper bound is inclusive.

  1. func (r RangeInt32) Lower() OptionalInt32

Lower returns the lower bound.

  1. func (r RangeInt32) MarshalJSON() ([]byte, error)

MarshalJSON returns r marshaled as json.

  1. func (r *RangeInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals bytes into *r.

  1. func (r RangeInt32) Upper() OptionalInt32

Upper returns the upper bound.

RangeInt64 is an interval of int64 values.

  1. type RangeInt64 struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewRangeInt64(
  2. lower, upper OptionalInt64,
  3. incLower, incUpper bool,
  4. ) RangeInt64

NewRangeInt64 creates a new RangeInt64 value.

  1. func (r RangeInt64) Empty() bool

Empty returns true if the range is empty.

  1. func (r RangeInt64) IncLower() bool

IncLower returns true if the lower bound is inclusive.

  1. func (r RangeInt64) IncUpper() bool

IncUpper returns true if the upper bound is inclusive.

  1. func (r RangeInt64) Lower() OptionalInt64

Lower returns the lower bound.

  1. func (r RangeInt64) MarshalJSON() ([]byte, error)

MarshalJSON returns r marshaled as json.

  1. func (r *RangeInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals bytes into *r.

  1. func (r RangeInt64) Upper() OptionalInt64

Upper returns the upper bound.

RangeLocalDate is an interval of LocalDate values.

  1. type RangeLocalDate struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewRangeLocalDate(
  2. lower, upper OptionalLocalDate,
  3. incLower, incUpper bool,
  4. ) RangeLocalDate

NewRangeLocalDate creates a new RangeLocalDate value.

  1. func (r RangeLocalDate) Empty() bool

Empty returns true if the range is empty.

  1. func (r RangeLocalDate) IncLower() bool

IncLower returns true if the lower bound is inclusive.

  1. func (r RangeLocalDate) IncUpper() bool

IncUpper returns true if the upper bound is inclusive.

  1. func (r RangeLocalDate) Lower() OptionalLocalDate

Lower returns the lower bound.

  1. func (r RangeLocalDate) MarshalJSON() ([]byte, error)

MarshalJSON returns r marshaled as json.

  1. func (r *RangeLocalDate) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals bytes into *r.

  1. func (r RangeLocalDate) Upper() OptionalLocalDate

Upper returns the upper bound.

RangeLocalDateTime is an interval of LocalDateTime values.

  1. type RangeLocalDateTime struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewRangeLocalDateTime(
  2. lower, upper OptionalLocalDateTime,
  3. incLower, incUpper bool,
  4. ) RangeLocalDateTime

NewRangeLocalDateTime creates a new RangeLocalDateTime value.

  1. func (r RangeLocalDateTime) Empty() bool

Empty returns true if the range is empty.

  1. func (r RangeLocalDateTime) IncLower() bool

IncLower returns true if the lower bound is inclusive.

  1. func (r RangeLocalDateTime) IncUpper() bool

IncUpper returns true if the upper bound is inclusive.

  1. func (r RangeLocalDateTime) Lower() OptionalLocalDateTime

Lower returns the lower bound.

  1. func (r RangeLocalDateTime) MarshalJSON() ([]byte, error)

MarshalJSON returns r marshaled as json.

  1. func (r *RangeLocalDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals bytes into *r.

  1. func (r RangeLocalDateTime) Upper() OptionalLocalDateTime

Upper returns the upper bound.

RelativeDuration represents the elapsed time between two instants in a fuzzy human way.

  1. type RelativeDuration struct {
  2. // contains filtered or unexported fields
  3. }
  1. func NewRelativeDuration(
  2. months, days int32,
  3. microseconds int64,
  4. ) RelativeDuration

NewRelativeDuration returns a new RelativeDuration

  1. func (rd RelativeDuration) MarshalText() ([]byte, error)

MarshalText returns rd marshaled as text.

  1. func (rd RelativeDuration) String() string
  1. func (rd *RelativeDuration) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *rd.

UUID a universally unique identifier https://www.edgedb.com/docs/stdlib/uuid

  1. type UUID [16]byte
  1. func ParseUUID(s string) (UUID, error)

ParseUUID parses s into a UUID or returns an error.

  1. func (id UUID) MarshalText() ([]byte, error)

MarshalText returns the id as a byte string.

  1. func (id UUID) String() string
  1. func (id *UUID) UnmarshalText(b []byte) error

UnmarshalText unmarshals the id from a string.