template

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteHeader

func WriteHeader(w io.Writer, i *Header) error

func WriteModel

func WriteModel(w io.Writer, m *ModelInfo) error

Types

type FieldInfo

type FieldInfo struct {
	FieldName  string
	ColumnName string
	Wrapper    string
}
type Header struct {
	Package      string
	DmgenVersion string
}

type ModelInfo

type ModelInfo struct {
	ModelName string

	SelectFields []*FieldInfo // All fields
	InsertFields []*FieldInfo
	UpdateFields []*FieldInfo
}

Jump to

Keyboard shortcuts

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