Documentation ¶
Index ¶
- func ConfigureAcronym(words []string)
- func GetCreateTableFromDB(dsn, tableName string) (string, error)
- func ParseSqlToWrite(sql string, writer io.Writer, options ...Option) error
- type ModelCodes
- type NullStyle
- type Option
- func WithCharset(charset string) Option
- func WithCollation(collation string) Option
- func WithColumnPrefix(p string) Option
- func WithForceTableName() Option
- func WithGormType() Option
- func WithIndex() Option
- func WithJsonTag() Option
- func WithNoNullType() Option
- func WithNullStyle(s NullStyle) Option
- func WithPackage(pkg string) Option
- func WithTablePrefix(p string) Option
- type StructCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureAcronym ¶
func ConfigureAcronym(words []string)
func GetCreateTableFromDB ¶
Types ¶
type ModelCodes ¶
type ModelCodes struct { Package string ImportPath []string StructCode []StructCode }
func ParseSqlFromDB ¶
func ParseSqlFromDB(dsn, tableName string, options ...Option) (ModelCodes, error)
type Option ¶
type Option func(*options)
func WithCharset ¶
func WithCollation ¶
func WithColumnPrefix ¶
func WithForceTableName ¶
func WithForceTableName() Option
func WithJsonTag ¶
func WithJsonTag() Option
func WithNoNullType ¶
func WithNoNullType() Option
func WithNullStyle ¶
func WithPackage ¶
func WithTablePrefix ¶
type StructCode ¶
Click to show internal directories.
Click to hide internal directories.