Documentation ¶
Index ¶
- func GenerateTableStruct(db *gorm.DB, options ...Option)
- type FileNameHandler
- type ModelNameHandler
- type Option
- func GenTables(table ...string) Option
- func WithFieldCoverable(yes bool) Option
- func WithFieldNullable(yes bool) Option
- func WithGenerateMode(mode gen.GenerateMode) Option
- func WithOutFileNameHandler(handler FileNameHandler) Option
- func WithOutFileSuffixName(path string) Option
- func WithOutModelNameHandler(handler ModelNameHandler) Option
- func WithOutPath(path string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTableStruct ¶
Types ¶
type FileNameHandler ¶
type ModelNameHandler ¶
type Option ¶
type Option func(config *option)
func WithFieldCoverable ¶
generate pointer when field has default value
func WithFieldNullable ¶
func WithGenerateMode ¶
func WithGenerateMode(mode gen.GenerateMode) Option
func WithOutFileNameHandler ¶
func WithOutFileNameHandler(handler FileNameHandler) Option
func WithOutModelNameHandler ¶
func WithOutModelNameHandler(handler ModelNameHandler) Option
Click to show internal directories.
Click to hide internal directories.