schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActionByNameInEntityDefinition

func GetActionByNameInEntityDefinition(entityDefinition *base.EntityDefinition, name string) (actionDefinition *base.ActionDefinition, err error)

GetActionByNameInEntityDefinition -

func GetActionWithKey

func GetActionWithKey(schema *base.IndexedSchema, key string) (actionDefinition *base.ActionDefinition, err error)

GetActionWithKey Key -> entity_name#action_name

func GetColumn

func GetColumn(definition *base.RelationDefinition) (string, bool)

GetColumn -

func GetEntityByName

func GetEntityByName(schema *base.IndexedSchema, name string) (entityDefinition *base.EntityDefinition, err error)

GetEntityByName -

func GetEntityReference

func GetEntityReference(definition *base.RelationDefinition) string

GetEntityReference -

func GetIdentifier

func GetIdentifier(definition *base.EntityDefinition) string

GetIdentifier -

func GetRelationByNameInEntityDefinition

func GetRelationByNameInEntityDefinition(entityDefinition *base.EntityDefinition, name string) (relationDefinition *base.RelationDefinition, err error)

GetRelationByNameInEntityDefinition -

func GetRelationWithKey

func GetRelationWithKey(schema *base.IndexedSchema, key string) (relationDefinition *base.RelationDefinition, err error)

GetRelationWithKey Key -> entity_name#relation_name

func GetTable

func GetTable(definition *base.EntityDefinition) string

GetTable -

func GetTypeOfRelationalReferenceByNameInEntityDefinition

func GetTypeOfRelationalReferenceByNameInEntityDefinition(entityDefinition *base.EntityDefinition, name string) (relationalDefinitionType base.EntityDefinition_RelationalReference, err error)

GetTypeOfRelationalReferenceByNameInEntityDefinition -

func NewSchema

func NewSchema(entities ...*base.EntityDefinition) (schema *base.IndexedSchema)

NewSchema -

Types

This section is empty.

Jump to

Keyboard shortcuts

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