Documentation
¶
Index ¶
- type Duration
- type LocalDate
- type LocalDateTime
- type LocalTime
- type Optional
- type OptionalBigInt
- type OptionalBool
- type OptionalBytes
- type OptionalDateTime
- type OptionalDuration
- type OptionalFloat32
- type OptionalFloat64
- type OptionalInt16
- type OptionalInt32
- type OptionalInt64
- type OptionalLocalDate
- type OptionalLocalDateTime
- type OptionalLocalTime
- type OptionalRelativeDuration
- type OptionalStr
- type OptionalUUID
- type RelativeDuration
- type UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
type Duration int64
Duration represents the elapsed time between two instants as an int64 microsecond count.
type LocalDate ¶
type LocalDate struct {
// contains filtered or unexported fields
}
LocalDate is a date without a time zone. https://www.edgedb.com/docs/datamodel/scalars/datetime/
func NewLocalDate ¶
NewLocalDate returns a new LocalDate
type LocalDateTime ¶
type LocalDateTime struct {
// contains filtered or unexported fields
}
LocalDateTime is a date and time without timezone. https://www.edgedb.com/docs/datamodel/scalars/datetime/
func NewLocalDateTime ¶
func NewLocalDateTime( year int, month time.Month, day, hour, minute, second, microsecond int, ) LocalDateTime
NewLocalDateTime returns a new LocalDateTime
func (LocalDateTime) String ¶
func (dt LocalDateTime) String() string
type LocalTime ¶
type LocalTime struct {
// contains filtered or unexported fields
}
LocalTime is a time without a time zone. https://www.edgedb.com/docs/datamodel/scalars/datetime/
func NewLocalTime ¶
NewLocalTime returns a new LocalTime
type Optional ¶ added in v0.8.0
type Optional struct {
// contains filtered or unexported fields
}
Optional represents a shape field that is not required.
func (*Optional) SetMissing ¶ added in v0.8.0
SetMissing sets the structs missing status. true means missing and false means present.
type OptionalBigInt ¶ added in v0.8.0
type OptionalBigInt struct {
// contains filtered or unexported fields
}
OptionalBigInt is an optional *big.Int. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalBigInt) Get ¶ added in v0.8.0
func (o *OptionalBigInt) Get() (*big.Int, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalBigInt) Set ¶ added in v0.8.0
func (o *OptionalBigInt) Set(val *big.Int)
Set sets the value.
func (*OptionalBigInt) Unset ¶ added in v0.8.0
func (o *OptionalBigInt) Unset()
Unset marks the value as missing.
type OptionalBool ¶ added in v0.8.0
type OptionalBool struct {
// contains filtered or unexported fields
}
OptionalBool is an optional bool. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalBool) Get ¶ added in v0.8.0
func (o *OptionalBool) Get() (bool, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalBool) Unset ¶ added in v0.8.0
func (o *OptionalBool) Unset()
Unset marks the value as missing.
type OptionalBytes ¶ added in v0.8.0
type OptionalBytes struct {
// contains filtered or unexported fields
}
OptionalBytes is an optional []byte. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalBytes) Get ¶ added in v0.8.0
func (o *OptionalBytes) Get() ([]byte, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalBytes) Set ¶ added in v0.8.0
func (o *OptionalBytes) Set(val []byte)
Set sets the value.
func (*OptionalBytes) Unset ¶ added in v0.8.0
func (o *OptionalBytes) Unset()
Unset marks the value as missing.
type OptionalDateTime ¶ added in v0.8.0
type OptionalDateTime struct {
// contains filtered or unexported fields
}
OptionalDateTime is an optional time.Time. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalDateTime) Get ¶ added in v0.8.0
func (o *OptionalDateTime) Get() (time.Time, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalDateTime) Set ¶ added in v0.8.0
func (o *OptionalDateTime) Set(val time.Time)
Set sets the value.
func (*OptionalDateTime) Unset ¶ added in v0.8.0
func (o *OptionalDateTime) Unset()
Unset marks the value as missing.
type OptionalDuration ¶ added in v0.8.0
type OptionalDuration struct {
// contains filtered or unexported fields
}
OptionalDuration is an optional Duration. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalDuration) Get ¶ added in v0.8.0
func (o *OptionalDuration) Get() (Duration, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalDuration) Set ¶ added in v0.8.0
func (o *OptionalDuration) Set(val Duration)
Set sets the value.
func (*OptionalDuration) Unset ¶ added in v0.8.0
func (o *OptionalDuration) Unset()
Unset marks the value as missing.
type OptionalFloat32 ¶ added in v0.8.0
type OptionalFloat32 struct {
// contains filtered or unexported fields
}
OptionalFloat32 is an optional float32. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalFloat32) Get ¶ added in v0.8.0
func (o *OptionalFloat32) Get() (float32, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalFloat32) Set ¶ added in v0.8.0
func (o *OptionalFloat32) Set(val float32)
Set sets the value.
func (*OptionalFloat32) Unset ¶ added in v0.8.0
func (o *OptionalFloat32) Unset()
Unset marks the value as missing.
type OptionalFloat64 ¶ added in v0.8.0
type OptionalFloat64 struct {
// contains filtered or unexported fields
}
OptionalFloat64 is an optional float64. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalFloat64) Get ¶ added in v0.8.0
func (o *OptionalFloat64) Get() (float64, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalFloat64) Set ¶ added in v0.8.0
func (o *OptionalFloat64) Set(val float64)
Set sets the value.
func (*OptionalFloat64) Unset ¶ added in v0.8.0
func (o *OptionalFloat64) Unset()
Unset marks the value as missing.
type OptionalInt16 ¶ added in v0.8.0
type OptionalInt16 struct {
// contains filtered or unexported fields
}
OptionalInt16 is an optional int16. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalInt16) Get ¶ added in v0.8.0
func (o *OptionalInt16) Get() (int16, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalInt16) Set ¶ added in v0.8.0
func (o *OptionalInt16) Set(val int16)
Set sets the value.
func (*OptionalInt16) Unset ¶ added in v0.8.0
func (o *OptionalInt16) Unset()
Unset marks the value as missing.
type OptionalInt32 ¶ added in v0.8.0
type OptionalInt32 struct {
// contains filtered or unexported fields
}
OptionalInt32 is an optional int32. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalInt32) Get ¶ added in v0.8.0
func (o *OptionalInt32) Get() (int32, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalInt32) Set ¶ added in v0.8.0
func (o *OptionalInt32) Set(val int32)
Set sets the value.
func (*OptionalInt32) Unset ¶ added in v0.8.0
func (o *OptionalInt32) Unset()
Unset marks the value as missing.
type OptionalInt64 ¶ added in v0.8.0
type OptionalInt64 struct {
// contains filtered or unexported fields
}
OptionalInt64 is an optional int64. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalInt64) Get ¶ added in v0.8.0
func (o *OptionalInt64) Get() (int64, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalInt64) Set ¶ added in v0.8.0
func (o *OptionalInt64) Set(val int64) *OptionalInt64
Set sets the value.
func (*OptionalInt64) Unset ¶ added in v0.8.0
func (o *OptionalInt64) Unset() *OptionalInt64
Unset marks the value as missing.
type OptionalLocalDate ¶ added in v0.8.0
type OptionalLocalDate struct {
// contains filtered or unexported fields
}
OptionalLocalDate is an optional LocalDate. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalLocalDate) Get ¶ added in v0.8.0
func (o *OptionalLocalDate) Get() (LocalDate, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalLocalDate) Set ¶ added in v0.8.0
func (o *OptionalLocalDate) Set(val LocalDate)
Set sets the value.
func (*OptionalLocalDate) Unset ¶ added in v0.8.0
func (o *OptionalLocalDate) Unset()
Unset marks the value as missing.
type OptionalLocalDateTime ¶ added in v0.8.0
type OptionalLocalDateTime struct {
// contains filtered or unexported fields
}
OptionalLocalDateTime is an optional LocalDateTime. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalLocalDateTime) Get ¶ added in v0.8.0
func (o *OptionalLocalDateTime) Get() (LocalDateTime, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalLocalDateTime) Set ¶ added in v0.8.0
func (o *OptionalLocalDateTime) Set(val LocalDateTime)
Set sets the value.
func (*OptionalLocalDateTime) Unset ¶ added in v0.8.0
func (o *OptionalLocalDateTime) Unset()
Unset marks the value as missing.
type OptionalLocalTime ¶ added in v0.8.0
type OptionalLocalTime struct {
// contains filtered or unexported fields
}
OptionalLocalTime is an optional LocalTime. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalLocalTime) Get ¶ added in v0.8.0
func (o *OptionalLocalTime) Get() (LocalTime, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalLocalTime) Set ¶ added in v0.8.0
func (o *OptionalLocalTime) Set(val LocalTime)
Set sets the value.
func (*OptionalLocalTime) Unset ¶ added in v0.8.0
func (o *OptionalLocalTime) Unset()
Unset marks the value as missing.
type OptionalRelativeDuration ¶ added in v0.8.0
type OptionalRelativeDuration struct {
// contains filtered or unexported fields
}
OptionalRelativeDuration is an optional RelativeDuration. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalRelativeDuration) Get ¶ added in v0.8.0
func (o *OptionalRelativeDuration) Get() (RelativeDuration, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalRelativeDuration) Set ¶ added in v0.8.0
func (o *OptionalRelativeDuration) Set(val RelativeDuration)
Set sets the value.
func (*OptionalRelativeDuration) Unset ¶ added in v0.8.0
func (o *OptionalRelativeDuration) Unset()
Unset marks the value as missing.
type OptionalStr ¶ added in v0.8.0
type OptionalStr struct {
// contains filtered or unexported fields
}
OptionalStr is an optional string. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalStr) Get ¶ added in v0.8.0
func (o *OptionalStr) Get() (string, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalStr) Unset ¶ added in v0.8.0
func (o *OptionalStr) Unset()
Unset marks the value as missing.
type OptionalUUID ¶ added in v0.8.0
type OptionalUUID struct {
// contains filtered or unexported fields
}
OptionalUUID is an optional UUID. Optional types must be used for out parameters when a shape field is not required.
func (*OptionalUUID) Get ¶ added in v0.8.0
func (o *OptionalUUID) Get() (UUID, bool)
Get returns the value and a boolean indicating if the value is present.
func (*OptionalUUID) Unset ¶ added in v0.8.0
func (o *OptionalUUID) Unset()
Unset marks the value as missing.
type RelativeDuration ¶ added in v0.7.0
type RelativeDuration struct {
// contains filtered or unexported fields
}
RelativeDuration represents the elapsed time between two instants in a fuzzy human way.
func NewRelativeDuration ¶ added in v0.7.0
func NewRelativeDuration( months, days int32, microseconds int64, ) RelativeDuration
NewRelativeDuration returns a new RelativeDuration
func (RelativeDuration) String ¶ added in v0.7.0
func (rd RelativeDuration) String() string
type UUID ¶
type UUID [16]byte
UUID a universally unique identifier https://www.edgedb.com/docs/datamodel/scalars/uuid#type::std::uuid
func (UUID) MarshalText ¶
MarshalText returns the id as a byte string.
func (*UUID) UnmarshalText ¶
UnmarshalText unmarshals the id from a string.