Documentation ¶
Index ¶
- Variables
- func GolangArgName(column *dbx.Column) string
- func GolangFieldInit(column *dbx.Column) string
- func GolangFieldName(column *dbx.Column) string
- func GolangFieldTag(column *dbx.Column) string
- func GolangFieldType(column *dbx.Column) string
- func GolangFuncSuffix(table *dbx.Table, args []GolangArg) (suffix string)
- func GolangStructName(table *dbx.Table) string
- type Golang
- func (g *Golang) Format(in []byte) (out []byte, err error)
- func (g *Golang) Name() string
- func (g *Golang) RenderCount(w io.Writer, dialects []dbx.Dialect, params *dbx.SelectParams) (err error)
- func (g *Golang) RenderDelete(w io.Writer, dialects []dbx.Dialect, params *dbx.DeleteParams) (err error)
- func (g *Golang) RenderFooter(w io.Writer) (err error)
- func (g *Golang) RenderHeader(w io.Writer, dialects []dbx.Dialect, schema *dbx.Schema) (err error)
- func (g *Golang) RenderInsert(w io.Writer, dialects []dbx.Dialect, params *dbx.InsertParams) (err error)
- func (g *Golang) RenderSelect(w io.Writer, dialects []dbx.Dialect, params *dbx.SelectParams) (err error)
- func (g *Golang) RenderUpdate(w io.Writer, dialects []dbx.Dialect, params *dbx.UpdateParams) (err error)
- type GolangArg
- type GolangAutoParam
- type GolangField
- type GolangFunc
- type GolangFuncBase
- type GolangInsert
- type GolangInsertBase
- type GolangOptions
- type GolangReturnBy
- type GolangSelect
- type GolangStruct
- type GolangUpdate
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Error = errors.NewClass("language")
)
Functions ¶
func GolangArgName ¶
func GolangFieldInit ¶
func GolangFieldName ¶
func GolangFieldTag ¶
func GolangFieldType ¶
func GolangStructName ¶
Types ¶
type Golang ¶
type Golang struct {
// contains filtered or unexported fields
}
func (*Golang) RenderCount ¶
func (*Golang) RenderDelete ¶
func (*Golang) RenderHeader ¶
func (*Golang) RenderInsert ¶
func (*Golang) RenderSelect ¶
func (*Golang) RenderUpdate ¶
type GolangArg ¶
func GolangArgFromColumn ¶
func GolangArgsFromColumns ¶
func GolangArgsFromConditions ¶
func GolangArgsFromConditions(conditions []*dbx.ConditionParams) ( out []GolangArg)
type GolangAutoParam ¶
type GolangFunc ¶
type GolangFunc struct { GolangFuncBase Dialect string SQL string }
func MakeGolangFunc ¶
func MakeGolangFunc(base GolangFuncBase, dialect, sql string) GolangFunc
type GolangFuncBase ¶
func MakeGolangFuncBase ¶
func MakeGolangFuncBase(table *dbx.Table, args []GolangArg) GolangFuncBase
type GolangInsert ¶
type GolangInsert struct { GolangFunc ReturnBy *GolangReturnBy NeedsNow bool Inserts []GolangArg Autos []GolangAutoParam }
type GolangInsertBase ¶
type GolangInsertBase struct { GolangFuncBase Inserts []GolangArg }
type GolangOptions ¶
type GolangOptions struct {
Package string
}
type GolangReturnBy ¶
type GolangReturnBy struct { Pk string Getter *GolangFuncBase }
type GolangSelect ¶
type GolangSelect struct { GolangFunc PagedOn string }
type GolangStruct ¶
type GolangStruct struct { Name string Fields []GolangField Updatable bool UpdatableFields []GolangField }
type GolangUpdate ¶
type GolangUpdate struct { GolangFunc SupportsReturning bool NeedsNow bool Autos []GolangAutoParam }
Click to show internal directories.
Click to hide internal directories.