codegen

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEnumFile added in v0.0.5

func BuildEnumFile(engine string, conf core.Config, qualName string, enum core.Enum, defaultSchema string) (string, []byte, error)

func BuildModelFile added in v0.0.2

func BuildModelFile(config core.Config, name string, model []core.QueryReturn) (string, []byte, error)

func BuildQueriesFile

func BuildQueriesFile(engine string, config core.Config, queryFilename string, queries []core.Query, embeddedModels core.EmbeddedModels, nullableHelpers core.NullableHelpers) (string, []byte, error)

func EnumClassName added in v0.0.5

func EnumClassName(qualifiedName, defaultSchema string) string

Types

type IndentStringBuilder

type IndentStringBuilder struct {
	strings.Builder
	// contains filtered or unexported fields
}

func NewIndentStringBuilder

func NewIndentStringBuilder(indentChar string, charsPerIndentLevel int) *IndentStringBuilder

func (*IndentStringBuilder) WriteIndentedString

func (b *IndentStringBuilder) WriteIndentedString(level int, s string) int

Jump to

Keyboard shortcuts

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