model

package
v0.0.0-...-7749cd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdNew = &cobra.Command{
	Use:   "model",
	Short: "Generate the model file.",
	Long:  "Generate the model file via database table.",
	Run:   run,
}

CmdNew represents the proto command.

Functions

This section is empty.

Types

type Model

type Model struct {
	Filename    string
	Host        string
	Database    string
	TableName   string
	PackageName string
	StructName  string
	User        string
	Password    string
	Format      string
	TargetDir   string
}

Model is a model template.

func (*Model) Generate

func (m *Model) Generate() error

New new a project from remote repo.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL