Documentation
¶
Overview ¶
Package generate implements code generation for repository types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRepository ¶
Types ¶
type FieldMapping ¶
type FieldMapping struct {
Field string
Column string
Type string
Opts FieldOptions
}
func (*FieldMapping) SQLType ¶
func (f *FieldMapping) SQLType() string
type FieldOptions ¶
type FieldOptions struct {
ID bool
}
type StructMapping ¶
type StructMapping struct {
Package string
Name string
Fields []FieldMapping
}
func (*StructMapping) ID ¶
func (s *StructMapping) ID() *FieldMapping
Click to show internal directories.
Click to hide internal directories.