typrepo

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityAnnotation

type EntityAnnotation struct {
	TagName string // By default is @entity
}

EntityAnnotation ...

func (*EntityAnnotation) Annotate

func (m *EntityAnnotation) Annotate(c *typast.Context) error

Annotate Envconfig to prepare dependency-injection and env-file

func (*EntityAnnotation) GetDest added in v0.9.11

func (*EntityAnnotation) GetDest(file string) string

GetDest get destination

type EntityTmplData added in v0.9.10

type EntityTmplData struct {
	typast.Signature
	Name       string
	Table      string
	Dialect    string
	CtorDB     string
	Pkg        string
	SourcePkg  string
	Dest       string
	Fields     []*Field
	Imports    map[string]string
	PrimaryKey *Field
}

EntityTmplData ...

type Field

type Field struct {
	Name         string
	Type         string
	Column       string
	PrimaryKey   bool
	DefaultValue string
	SkipUpdate   bool
}

Field repo

Jump to

Keyboard shortcuts

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