Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildQueries ¶
func BuildQueries(req *plugin.GenerateRequest, modelClasses []ModelClass) ([]Query, []*ModelClass, error)
Types ¶
type ModelClass ¶
type ModelClass struct {
Table plugin.Identifier
Name string
Fields []Field
Comment string
}
func BuildDataClasses ¶
func BuildDataClasses(req *plugin.GenerateRequest) []ModelClass
type ModelsTmplCtx ¶
type ModelsTmplCtx struct {
Package string
ModelClass *ModelClass
SqlcVersion string
SourceName string
}
type Params ¶
type Params struct {
ModelClass *ModelClass
}
type QueriesTmplCtx ¶
type QueryValue ¶
type QueryValue struct {
Name string
Struct *ModelClass
Typ phpType
}
func (QueryValue) IsStruct ¶
func (v QueryValue) IsStruct() bool
func (QueryValue) ResultSet ¶
func (v QueryValue) ResultSet() string
func (QueryValue) Type ¶
func (v QueryValue) Type() string
Click to show internal directories.
Click to hide internal directories.