descriptor

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IDZero = types.UUID{}

IDZero is descriptor ID 00000000-0000-0000-0000-000000000000 https://www.edgedb.com/docs/internals/protocol/typedesc#type-descriptors

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	Type   Type
	ID     types.UUID
	Fields []*Field
}

Descriptor is a type descriptor https://www.edgedb.com/docs/internals/protocol/typedesc

func Pop

Pop builds a descriptor tree from a describe statement type description.

type Field

type Field struct {
	Name     string
	Desc     Descriptor
	Required bool
}

Field represents the child of a descriptor

type Type

type Type uint8

Type represents a descriptor type.

const (
	// Set represents the set descriptor type.
	Set Type = iota

	// Object represents the object descriptor type.
	Object

	// BaseScalar represents the base scalar descriptor type.
	BaseScalar

	// Scalar represents the scalar descriptor type.
	Scalar

	// Tuple represents the tuple descriptor type.
	Tuple

	// NamedTuple represents the named tuple descriptor type.
	NamedTuple

	// Array represents the array descriptor type.
	Array

	// Enum represents the enum descriptor type.
	Enum
)

Jump to

Keyboard shortcuts

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