Versions in this module Expand all Collapse all v0 v0.2.0 Oct 12, 2022 Changes in this version type Options + DBWrapName string + GenORM bool v0.1.0 Sep 13, 2022 Changes in this version + const Conn + const FollowFKs + const Output + const Pkg + const Tables + func AddFlags(command *cobra.Command) + func CreateCommand(name, description string, generator Gen) *cobra.Command + func ReadFlags(command *cobra.Command) (conn, output, pkg string, tables []string, followFKs bool, ...) + type Gen interface + AddFlags func(command *cobra.Command) + Generate func() error + ReadFlags func(command *cobra.Command) error + type Generator struct + func NewGenerator(url string) Generator + func (g Generator) Generate(tables []string, followFKs, useSQLNulls bool, output, tmpl string, ...) error + func (g Generator) GenerateFromEntities(entities []model.Entity, output, tmpl string, packer Packer) error + type Options struct + CustomTypes model.CustomTypeMapping + FollowFKs bool + Output string + Tables []string + URL string + func (o *Options) Def() + type Packer func(entities []model.Entity) (interface{}, error)