Documentation ¶
Index ¶
Constants ¶
View Source
const NotEditMark = `
// Code generated by github.com/wangpeng8/gorm_gen. DO NOT EDIT.
`
Variables ¶
View Source
var ( // TableQueryStruct table query struct TableQueryStruct = GetCodeTpl(`table`) // TableQueryStructWithContext table query struct with context TableQueryStructWithContext = GetCodeTpl(`table_context`) // TableQueryIface table query interface TableQueryIface = GetCodeTpl(`table_interface`) )
View Source
var CRUDMethod = GetCodeTpl(`crud_method`)
CRUDMethod CRUD method
View Source
var CRUDMethodTest = GetCodeTpl(`crud_method_test`)
CRUDMethodTest CRUD method test
View Source
var DIYMethod = GetCodeTpl(`diy_method`)
DIYMethod DIY method
View Source
var DIYMethodTest = GetCodeTpl(`diy_method_test`)
DIYMethodTest DIY method test
View Source
var DIYMethodTestBasic = GetCodeTpl(`diy_method_test_basic`)
DIYMethodTestBasic DIY method test basic
View Source
var DefaultQuery = GetCodeTpl(`default_query`)
DefaultQuery default query
View Source
var Header = GetCodeTpl(`header`)
View Source
var Model = GetCodeTpl(`model`)
Model used as a variable because it cannot load template file after packed, params still can pass file
View Source
var ModelMethod = GetCodeTpl(`model_method`)
ModelMethod model struct DIY method
View Source
var QueryMethod = GetCodeTpl(`query_method`)
QueryMethod query method template
View Source
var QueryMethodTest = GetCodeTpl(`query_method_test`)
QueryMethodTest query method test template
Functions ¶
func CodeSnippetJoin ¶
func GetCodeTpl ¶
func GetTemplateFs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.