renderer

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataLoaderRenderer

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

func NewDataLoaderRenderer

func NewDataLoaderRenderer(
	structs []model.Struct,
	options *opts.Options,
	importer *imports.ImportBuilder,
) *DataLoaderRenderer

func (*DataLoaderRenderer) Render

func (r *DataLoaderRenderer) Render() ([]*plugin.File, error)

type DataLoaderTplData

type DataLoaderTplData struct {
	Struct               LoaderStruct
	Package              string
	PrimaryKeyColumnName string
	PrimaryKeyFieldType  string
	PrimaryKeyFieldName  string
	Imports              []imports.Import
}

type LoaderFactoryTplData

type LoaderFactoryTplData struct {
	Structs      []LoaderStruct
	Package      string
	Imports      []imports.Import
	ModelPackage string
}

type LoaderStruct added in v0.1.1

type LoaderStruct struct {
	model.Struct
	LoaderName string
	Cache      opts.Cache
}

func (*LoaderStruct) SqlFieldNamesString added in v0.1.3

func (s *LoaderStruct) SqlFieldNamesString() string

Jump to

Keyboard shortcuts

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