Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2021 Changes in this version + func GetCreateTableFromDB(dsn, tableName string) (string, error) + func ParseSqlToWrite(sql string, writer io.Writer, options ...Option) error + type ModelCodes struct + ImportPath []string + Package string + StructCode []string + func ParseSql(sql string, options ...Option) (ModelCodes, error) + func ParseSqlFromDB(dsn, tableName string, options ...Option) (ModelCodes, error) + type NullStyle int + const NullDisable + const NullInPointer + const NullInSql + type Option func(*options) + func WithCharset(charset string) Option + func WithCollation(collation string) Option + func WithColumnPrefix(p string) Option + func WithForceTableName() Option + func WithGormType() Option + func WithJsonTag() Option + func WithNoNullType() Option + func WithNullStyle(s NullStyle) Option + func WithPackage(pkg string) Option + func WithTablePrefix(p string) Option