entity

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromEntityPb

func FromEntityPb(impl *protobufs.DatabaseEntity) data.Entity

func ToEntityPb

func ToEntityPb(e data.Entity) *protobufs.DatabaseEntity

Types

type Entity

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

func (*Entity) AppendChildId

func (e *Entity) AppendChildId(id string)

func (*Entity) GetChildrenIds

func (e *Entity) GetChildrenIds() []string

func (*Entity) GetId

func (e *Entity) GetId() string

func (*Entity) GetName

func (e *Entity) GetName() string

func (*Entity) GetParentId

func (e *Entity) GetParentId() string

func (*Entity) GetType

func (e *Entity) GetType() string

func (*Entity) Impl added in v0.0.11

func (e *Entity) Impl() any

func (*Entity) RemoveChildId

func (e *Entity) RemoveChildId(id string)

func (*Entity) SetChildrenIds

func (e *Entity) SetChildrenIds(ids []string)

func (*Entity) SetId

func (e *Entity) SetId(id string)

func (*Entity) SetName

func (e *Entity) SetName(name string)

func (*Entity) SetParentId

func (e *Entity) SetParentId(id string)

func (*Entity) SetType

func (e *Entity) SetType(t string)

type Schema

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

func (*Schema) GetField

func (s *Schema) GetField(name string) data.FieldSchema

func (*Schema) GetFieldNames

func (s *Schema) GetFieldNames() []string

func (*Schema) GetFields

func (s *Schema) GetFields() []data.FieldSchema

func (*Schema) GetType

func (s *Schema) GetType() string

func (*Schema) SetFields

func (s *Schema) SetFields(fields []data.FieldSchema)

func (*Schema) SetType

func (s *Schema) SetType(t string)

Jump to

Keyboard shortcuts

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