Help us shape the future of Go! Take the 2026 Go Developer Survey

delete

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const WriterDatlyResourceNamespace = "datly_run_delete_writer"

DatlyResourceNamespace identifies this package's generated resource filesystem.

Variables

View Source
var WriterDatly = new(WriterComponent)

The public value supports explicit component wiring.

View Source
var WriterDatlyResources embed.FS

Functions

func WriterDatlyType

func WriterDatlyType() reflect.Type

WriterDatlyType returns the public component type.

func WriterHandlerCurrentWriterIndexByIdKey

func WriterHandlerCurrentWriterIndexByIdKey(value *CurrentWriterView) (string, bool)

Types

type CurrentWriterView

type CurrentWriterView struct {
	Id string `validate:"required" sqlx:"id,primaryKey" json:"id"`
}

CurrentWriterView is generated canonical view metadata for writer.

type Input

type Input struct {
	ExecutionRunOnly bool                 `` /* 188-byte string literal not displayed */
	Runs             []*RunDelete         `` /* 188-byte string literal not displayed */
	WriterKeys       []WriterKeysRow      `parameter:"WriterKeys,kind=param,in=Runs,cardinality=Many" codec:"structql,'uri=datly_run_delete_writer:sql/writer_keys.sql'"`
	CurrentWriter    []*CurrentWriterView `` /* 157-byte string literal not displayed */

	Has *InputHas `setMarker:"true" typeName:"InputHas" json:"-" sqlx:"-"`
	// contains filtered or unexported fields
}

Input is the generated input scaffold for writer.

func (*Input) Init

func (input *Input) Init(context.Context) error

Init limits this private key-only contract to explicit deletion. Ordinary and conditional mutations use the full canonical run writer.

func (*Input) PrepareReadIndexes

func (input *Input) PrepareReadIndexes(ctx context.Context) error

func (*Input) ReadIndexes

func (input *Input) ReadIndexes(ctx context.Context) (*WriterHandlerReadIndexes, error)

func (*Input) SetCurrentWriter

func (input *Input) SetCurrentWriter(value []*CurrentWriterView)

func (*Input) SetExecutionRunOnly

func (input *Input) SetExecutionRunOnly(value bool)

func (*Input) SetRuns

func (input *Input) SetRuns(value []*RunDelete)

func (*Input) SetWriterKeys

func (input *Input) SetWriterKeys(value []WriterKeysRow)

type InputHas

type InputHas struct {
	ExecutionRunOnly bool
	Runs             bool
	WriterKeys       bool
	CurrentWriter    bool
}

type Output

type Output struct {
	Data []*RunDelete `parameter:"Data,kind=output,in=body,dataType=[]*RunDelete" json:"data,omitempty"`
}

Output is the generated output scaffold for writer.

type RunDelete

type RunDelete struct {
	ShouldDelete bool          `sqlx:"-" writer:"delete" json:"shouldDelete,omitempty"`
	Id           string        `validate:"required" sqlx:"id,primaryKey" json:"id"`
	Has          *RunDeleteHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-" typeName:"RunDeleteHas"`
}

RunDelete is generated canonical view metadata for writer.

func (*RunDelete) GetId

func (entity *RunDelete) GetId() string

func (*RunDelete) GetShouldDelete

func (entity *RunDelete) GetShouldDelete() bool

func (*RunDelete) SetId

func (entity *RunDelete) SetId(value string)

func (*RunDelete) SetShouldDelete

func (entity *RunDelete) SetShouldDelete(value bool)

type RunDeleteHas

type RunDeleteHas struct {
	ShouldDelete bool
	Id           bool
}

type WriterComponent

type WriterComponent struct {
	Contract xdatly.Component[Input, Output] "" /* 172-byte string literal not displayed */
}

Component is the generated component scaffold for writer.

func (WriterComponent) EmbedFS

func (WriterComponent) EmbedFS() *embed.FS

func (WriterComponent) EmbedNamespace

func (WriterComponent) EmbedNamespace() string

type WriterHandlerCurrentWriterGroupedById

type WriterHandlerCurrentWriterGroupedById map[string][]*CurrentWriterView

func (WriterHandlerCurrentWriterGroupedById) Has

type WriterHandlerCurrentWriterIndexedById

type WriterHandlerCurrentWriterIndexedById map[string]*CurrentWriterView

func (WriterHandlerCurrentWriterIndexedById) Has

type WriterHandlerCurrentWriterSlice

type WriterHandlerCurrentWriterSlice []*CurrentWriterView

func (WriterHandlerCurrentWriterSlice) GroupById

func (WriterHandlerCurrentWriterSlice) IndexById

type WriterHandlerReadIndexes

type WriterHandlerReadIndexes struct {
	CurrentWriter     WriterHandlerCurrentWriterSlice
	CurrentWriterById WriterHandlerCurrentWriterIndexedById
}

func BuildWriterHandlerReadIndexes

func BuildWriterHandlerReadIndexes(ctx context.Context, input *Input) (*WriterHandlerReadIndexes, error)

type WriterKeysRow

type WriterKeysRow struct {
	Id string `sqlx:"id"`
}

Jump to

Keyboard shortcuts

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