Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoubleSlashComment ¶
func LowerTitle ¶
Types ¶
type Enum ¶
func BuildEnums ¶
func BuildEnums(req *plugin.GenerateRequest) []Enum
type Importer ¶
type Importer struct { Settings *plugin.Settings DataClasses []Struct Enums []Enum Queries []Query }
var DefaultImporter *Importer
type Query ¶
type Query struct { ClassName string Cmd string Comments []string MethodName string FieldName string ConstantName string SQL string SourceName string Ret QueryValue Arg Params }
A struct used to generate methods and fields on the Queries struct
func BuildQueries ¶
func BuildQueries(req *plugin.GenerateRequest, structs []Struct) ([]Query, error)
type QueryValue ¶
func (QueryValue) EmitStruct ¶
func (v QueryValue) EmitStruct() bool
func (QueryValue) IsStruct ¶
func (v QueryValue) IsStruct() bool
func (QueryValue) ResultSet ¶
func (v QueryValue) ResultSet() string
func (QueryValue) Type ¶
func (v QueryValue) Type() string
type Struct ¶
type Struct struct { Table plugin.Identifier Name string Fields []Field Comment string }
func BuildDataClasses ¶
func BuildDataClasses(conf Config, req *plugin.GenerateRequest) []Struct
Click to show internal directories.
Click to hide internal directories.