Documentation ¶
Index ¶
- func Generate(r *compiler.Result, settings config.CombinedSettings) (map[string]string, error)
- func HashComment(s string) string
- func MethodName(name string) string
- func ModelName(name string, settings config.CombinedSettings) string
- type Constant
- type Enum
- type Field
- type Query
- type QueryValue
- type Struct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashComment ¶
func MethodName ¶
Types ¶
type Query ¶
type Query struct { Cmd string Comments []string MethodName string FieldName string ConstantName string SQL string SourceName string Ret QueryValue Args []QueryValue }
A struct used to generate methods and fields on the Queries struct
type QueryValue ¶
func (QueryValue) EmitStruct ¶
func (v QueryValue) EmitStruct() bool
func (QueryValue) IsStruct ¶
func (v QueryValue) IsStruct() bool
func (QueryValue) Pair ¶
func (v QueryValue) Pair() string
func (QueryValue) StructRowParser ¶
func (v QueryValue) StructRowParser(rowVar string, indentCount int) string
func (QueryValue) Type ¶
func (v QueryValue) Type() string
Click to show internal directories.
Click to hide internal directories.