Versions in this module Expand all Collapse all v1 v1.27.1 May 28, 2024 Changes in this version + func EnumReplace(value string) string + func EnumValueName(value string) string + func Generate(ctx context.Context, req *plugin.GenerateRequest) (*plugin.GenerateResponse, error) + func IsReserved(s string) bool + func JSONTagName(name string, options *opts.Options) string + func SetCaseStyle(name string, style string) string + func SetJSONCaseStyle(name string, style string, idUppercase bool) string + func StructName(name string, options *opts.Options) string + func TagsToString(tags map[string]string) string + type Argument struct + Name string + Type string + type Constant struct + Name string + Type string + Value string + type Enum struct + Comment string + Constants []Constant + Name string + NameTags map[string]string + ValidTags map[string]string + func (e Enum) NameTag() string + func (e Enum) ValidTag() string + type Field struct + Column *plugin.Column + Comment string + DBName string + EmbedFields []Field + Name string + Tags map[string]string + Type string + func (gf Field) HasSqlcSlice() bool + func (gf Field) Tag() string + type ImportSpec struct + ID string + Path string + func (s ImportSpec) String() string + type Query struct + Arg QueryValue + Cmd string + Comments []string + ConstantName string + FieldName string + MethodName string + Ret QueryValue + SQL string + SourceName string + Table *plugin.Identifier + func (q Query) TableIdentifierAsGoSlice() string + func (q Query) TableIdentifierForMySQL() string + type QueryValue struct + Column *plugin.Column + DBName string + Emit bool + EmitPointer bool + Name string + SQLDriver opts.SQLDriver + Struct *Struct + Typ string + func (v *QueryValue) DefineType() string + func (v *QueryValue) ReturnName() string + func (v QueryValue) ColumnNames() []string + func (v QueryValue) ColumnNamesAsGoSlice() string + func (v QueryValue) CopyFromMySQLFields() []Field + func (v QueryValue) EmitStruct() bool + func (v QueryValue) HasSqlcSlices() bool + func (v QueryValue) IsPointer() bool + func (v QueryValue) IsStruct() bool + func (v QueryValue) Pair() string + func (v QueryValue) Pairs() []Argument + func (v QueryValue) Params() string + func (v QueryValue) Scan() string + func (v QueryValue) SlicePair() string + func (v QueryValue) Type() string + func (v QueryValue) UniqueFields() []Field + func (v QueryValue) VariableForField(f Field) string + type Struct struct + Comment string + Fields []Field + Name string + Table *plugin.Identifier