Documentation ¶
Index ¶
- type ScaffoldMysql
- func (s ScaffoldMysql) GetCrudPackageName() string
- func (s ScaffoldMysql) GetPrimaryKey() []*descriptor.FieldDescriptorExt
- func (s ScaffoldMysql) GetPrimaryKeyAsQueryStmt() string
- func (s ScaffoldMysql) GetPrimaryKeyAsString(prefix, suffix, delimiter string, toLower bool, withGoType bool) string
- func (s ScaffoldMysql) NeedImportTime() bool
- type ScaffoldMysqlGeneratorTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScaffoldMysql ¶
type ScaffoldMysql struct { *descriptor.MessageDescriptorExt GoModuleName string }
func (ScaffoldMysql) GetCrudPackageName ¶
func (s ScaffoldMysql) GetCrudPackageName() string
func (ScaffoldMysql) GetPrimaryKey ¶
func (s ScaffoldMysql) GetPrimaryKey() []*descriptor.FieldDescriptorExt
func (ScaffoldMysql) GetPrimaryKeyAsQueryStmt ¶
func (s ScaffoldMysql) GetPrimaryKeyAsQueryStmt() string
func (ScaffoldMysql) GetPrimaryKeyAsString ¶
func (s ScaffoldMysql) GetPrimaryKeyAsString(prefix, suffix, delimiter string, toLower bool, withGoType bool) string
func (ScaffoldMysql) NeedImportTime ¶
func (s ScaffoldMysql) NeedImportTime() bool
type ScaffoldMysqlGeneratorTemplate ¶
type ScaffoldMysqlGeneratorTemplate struct {
// contains filtered or unexported fields
}
func New ¶
func New(d *descriptor.Descriptor, modelName string, goModuleName string) *ScaffoldMysqlGeneratorTemplate
func (*ScaffoldMysqlGeneratorTemplate) Generate ¶
func (t *ScaffoldMysqlGeneratorTemplate) Generate() ([]*generator.GeneratorResponseFile, error)
Click to show internal directories.
Click to hide internal directories.