codegen

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(schemaDB *schema.Database)

func RegisterTemplate

func RegisterTemplate(t Template)

Types

type DatabaseGenerator

type DatabaseGenerator interface {
	Template
	FileName(string) string
	GenerateDatabase(db *model.Database, f io.Writer, importPath string) error
}

type EnumGenerator

type EnumGenerator interface {
	Template
	FileName(*model.Enum) string
	GenerateEnum(table *model.Enum, f io.Writer, importPath string) error
}

type TableGenerator

type TableGenerator interface {
	Template
	FileName(*model.Table) string
	GenerateTable(table *model.Table, f io.Writer, importPath string) error
}

type Template

type Template interface {
	Overwrite() bool
}

Jump to

Keyboard shortcuts

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