Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(_ context.Context, req *plugin.CodeGenRequest) (*plugin.CodeGenResponse, error)
func HashComment ¶
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
func (Query) ArgDictNode ¶
type QueryValue ¶
func (QueryValue) Annotation ¶
func (v QueryValue) Annotation() *pyast.Node
func (QueryValue) EmitStruct ¶
func (v QueryValue) EmitStruct() bool
func (QueryValue) IsStruct ¶
func (v QueryValue) IsStruct() bool
Click to show internal directories.
Click to hide internal directories.