renderer

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 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 FixtureFactoryTplData

type FixtureFactoryTplData struct {
	Structs      []model.Struct
	Package      string
	Imports      []imports.Import
	ModelPackage string
}

type FixtureRenderer

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

func NewFixtureRenderer

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

func (*FixtureRenderer) Render

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

type FixtureTplData

type FixtureTplData struct {
	Struct               model.Struct
	Helper               *StructHelper
	Package              string
	PrimaryKeyColumnName string
	PrimaryKeyFieldType  string
	PrimaryKeyFieldName  string
	Imports              []imports.Import
}

type StructHelper

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

func NewStructHelper

func NewStructHelper(s model.Struct, driver opts.SQLDriver) *StructHelper

func (*StructHelper) ColumnNames

func (h *StructHelper) ColumnNames() string

func (*StructHelper) ColumnPlaceholders

func (h *StructHelper) ColumnPlaceholders() string

func (*StructHelper) TableName added in v0.1.8

func (h *StructHelper) TableName() string

func (*StructHelper) UpdateSql added in v0.1.4

func (h *StructHelper) UpdateSql() string

Jump to

Keyboard shortcuts

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