schema

package
v1.1.27 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionDef

type ActionDef struct {
	Name           string
	WrapTxn        bool
	Type           ActionType
	NoArgs         bool
	NillableArgs   bool
	DocComment     string
	GenericEntType string
	IsDefault      bool
}

func NewAction

func NewAction(name string, actionType ActionType, setters ...ActionOption) *ActionDef

type ActionOption

type ActionOption func(*ActionDef)

func DocComment

func DocComment(comment string) ActionOption

func GenericEntType

func GenericEntType(entType string) ActionOption

func IsDefault

func IsDefault() ActionOption

func NillableArgs

func NillableArgs() ActionOption

func NoArgs

func NoArgs() ActionOption

func WrapTxn

func WrapTxn(wrap bool) ActionOption

type ActionType

type ActionType string
const (
	ActionCreate ActionType = "Create"
	ActionUpdate ActionType = "Update"
)

type EntWithActions

type EntWithActions interface {
	Actions() []*ActionDef
}

Jump to

Keyboard shortcuts

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