edgedbtypes

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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.

func (Duration) String

func (d Duration) String() string

type LocalDate

type LocalDate struct {
	// contains filtered or unexported fields
}

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

func NewLocalDate

func NewLocalDate(year int, month time.Month, day int) LocalDate

NewLocalDate returns a new LocalDate

func (LocalDate) MarshalText added in v0.9.0

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

MarshalText returns d marshaled as text.

func (LocalDate) String

func (d LocalDate) String() string

func (*LocalDate) UnmarshalText added in v0.9.0

func (d *LocalDate) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *d.

type LocalDateTime

type LocalDateTime struct {
	// contains filtered or unexported fields
}

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

func NewLocalDateTime

func NewLocalDateTime(
	year int, month time.Month, day, hour, minute, second, microsecond int,
) LocalDateTime

NewLocalDateTime returns a new LocalDateTime

func (LocalDateTime) MarshalText added in v0.9.0

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

MarshalText returns dt marshaled as text.

func (LocalDateTime) String

func (dt LocalDateTime) String() string

func (*LocalDateTime) UnmarshalText added in v0.9.0

func (dt *LocalDateTime) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *dt.

type LocalTime

type LocalTime struct {
	// contains filtered or unexported fields
}

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

func NewLocalTime

func NewLocalTime(hour, minute, second, microsecond int) LocalTime

NewLocalTime returns a new LocalTime

func (LocalTime) MarshalText added in v0.9.0

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

MarshalText returns t marshaled as text.

func (LocalTime) String

func (t LocalTime) String() string

func (*LocalTime) UnmarshalText added in v0.9.0

func (t *LocalTime) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *t.

type Memory added in v0.9.0

type Memory int64

Memory represents memory in bytes.

func (Memory) MarshalText added in v0.9.0

func (m Memory) MarshalText() ([]byte, error)

MarshalText returns m marshaled as text.

func (Memory) String added in v0.9.0

func (m Memory) String() string

func (*Memory) UnmarshalText added in v0.9.0

func (m *Memory) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *m.

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) Missing added in v0.8.0

func (o *Optional) Missing() bool

Missing returns true if the value is missing.

func (*Optional) SetMissing added in v0.8.0

func (o *Optional) SetMissing(missing bool)

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

func (*Optional) Unset added in v0.9.0

func (o *Optional) Unset()

Unset marks the value as missing

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalBigInt) Set added in v0.8.0

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

Set sets the value.

func (*OptionalBigInt) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalBool) Set added in v0.8.0

func (o *OptionalBool) Set(val bool)

Set sets the value.

func (*OptionalBool) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalBytes) Set added in v0.8.0

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

Set sets the value.

func (*OptionalBytes) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalDateTime) Set added in v0.8.0

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

Set sets the value.

func (*OptionalDateTime) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalDuration) Set added in v0.8.0

func (o *OptionalDuration) Set(val Duration)

Set sets the value.

func (*OptionalDuration) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalFloat32) Set added in v0.8.0

func (o *OptionalFloat32) Set(val float32)

Set sets the value.

func (*OptionalFloat32) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalFloat64) Set added in v0.8.0

func (o *OptionalFloat64) Set(val float64)

Set sets the value.

func (*OptionalFloat64) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalInt16) Set added in v0.8.0

func (o *OptionalInt16) Set(val int16)

Set sets the value.

func (*OptionalInt16) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalInt32) Set added in v0.8.0

func (o *OptionalInt32) Set(val int32)

Set sets the value.

func (*OptionalInt32) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalInt64) Set added in v0.8.0

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

Set sets the value.

func (*OptionalInt64) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalLocalDate) Set added in v0.8.0

func (o *OptionalLocalDate) Set(val LocalDate)

Set sets the value.

func (*OptionalLocalDate) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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

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

func (OptionalLocalDateTime) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalLocalDateTime) Set added in v0.8.0

Set sets the value.

func (*OptionalLocalDateTime) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalLocalTime) Set added in v0.8.0

func (o *OptionalLocalTime) Set(val LocalTime)

Set sets the value.

func (*OptionalLocalTime) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

func (*OptionalLocalTime) Unset added in v0.8.0

func (o *OptionalLocalTime) Unset()

Unset marks the value as missing.

type OptionalMemory added in v0.9.0

type OptionalMemory struct {
	// contains filtered or unexported fields
}

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

func (*OptionalMemory) Get added in v0.9.0

func (o *OptionalMemory) Get() (Memory, bool)

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

func (OptionalMemory) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalMemory) Set added in v0.9.0

func (o *OptionalMemory) Set(val Memory)

Set sets the value.

func (*OptionalMemory) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

func (*OptionalMemory) Unset added in v0.9.0

func (o *OptionalMemory) 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

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

func (OptionalRelativeDuration) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalRelativeDuration) Set added in v0.8.0

Set sets the value.

func (*OptionalRelativeDuration) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalStr) Set added in v0.8.0

func (o *OptionalStr) Set(val string)

Set sets the value.

func (*OptionalStr) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o.

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) MarshalJSON added in v0.9.0

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

MarshalJSON returns o marshaled as json.

func (*OptionalUUID) Set added in v0.8.0

func (o *OptionalUUID) Set(val UUID)

Set sets the value.

func (*OptionalUUID) UnmarshalJSON added in v0.9.0

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

UnmarshalJSON unmarshals bytes into *o

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) MarshalText added in v0.9.0

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

MarshalText returns rd marshaled as text.

func (RelativeDuration) String added in v0.7.0

func (rd RelativeDuration) String() string

func (*RelativeDuration) UnmarshalText added in v0.9.0

func (rd *RelativeDuration) UnmarshalText(b []byte) error

UnmarshalText unmarshals bytes into *rd.

type UUID

type UUID [16]byte

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

func ParseUUID added in v0.6.0

func ParseUUID(s string) (UUID, error)

ParseUUID parses s into a UUID or returns an error.

func (UUID) MarshalText

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

MarshalText returns the id as a byte string.

func (UUID) String

func (id UUID) String() string

func (*UUID) UnmarshalText

func (id *UUID) UnmarshalText(b []byte) error

UnmarshalText unmarshals the id from a string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL