Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Package string `json:"package"` EmitExactTableNames bool `json:"emit_exact_table_names"` EmitClasses bool `json:"emit_classes"` InflectionExcludeTableNames []string `json:"inflection_exclude_table_names"` }
func (Config) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Config) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Config) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Config) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Enum ¶
func BuildEnums ¶
func BuildEnums(req *plugin.CodeGenRequest) []Enum
type QueryValue ¶
func (QueryValue) EmitStruct ¶
func (v QueryValue) EmitStruct() bool
func (QueryValue) IsStruct ¶
func (v QueryValue) IsStruct() bool
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.CodeGenRequest) []Struct
Click to show internal directories.
Click to hide internal directories.