func (g *Generator) Generate() error {
	options := g.Options()
	return base.NewGenerator(options.URL).
		Generate(
			options.Tables,
			options.FollowFKs,
			options.UseSQLNulls,
			options.Output,
			Template,
			g.Packer(),
			options.GoPgVer,
			options.CustomTypes,
		)
}
Generate runs whole generation process
package named
import (
	"github.com/dizzyfool/genna/generators/base"
	"github.com/dizzyfool/genna/generators/model"
	"github.com/spf13/cobra"
)
func CreateCommand() *cobra.Command {
	return base.CreateCommand("model-named", "Basic go-pg model generator with named structures", New())
}
type Generator struct {
	*model.Basic
}
func New() *Generator {
	return &Generator{
		Basic: model.New(),
	}
}