Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DoNotEditHead added to the beginning of a file to prompt the user not to edit
DoNotEditHead = "// Code generated by sqlx_gen. DO NOT EDIT."
)
Variables ¶
View Source
var Count string
View Source
var Delete string
View Source
var Field string
View Source
var Import string
View Source
var Insert string
View Source
var List string
View Source
var ModelGen = fmt.Sprintf(`%s package {{.pkg}} {{.imports}} {{.tableName}} {{.vars}} {{.types}} {{.insert}} {{.delete}} {{.update}} {{.list}} {{.count}} `, DoNotEditHead)
ModelGen defines a template for model
View Source
var TableName string
View Source
var Tag string
View Source
var Types string
View Source
var Update string
View Source
var Var string
Functions ¶
This section is empty.
Types ¶
type DefaultTemplate ¶
type DefaultTemplate struct {
// contains filtered or unexported fields
}
DefaultTemplate
func With ¶
func With(name string) *DefaultTemplate
func (*DefaultTemplate) Execute ¶
func (t *DefaultTemplate) Execute(data any) (*bytes.Buffer, error)
Execute
func (*DefaultTemplate) GoFmt ¶
func (t *DefaultTemplate) GoFmt(format bool) *DefaultTemplate
func (*DefaultTemplate) Parse ¶
func (t *DefaultTemplate) Parse(text string) *DefaultTemplate
Click to show internal directories.
Click to hide internal directories.