deal

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TableNameSuffix 表名后缀
	TableNameSuffix = ""
	// TableNamePrefix 表名前缀
	TableNamePrefix = ""
	// TableCommentSuffix 表注释后缀
	TableCommentSuffix = ""
)

Functions

func ConvertRawData2Model

func ConvertRawData2Model(tables []*core.Table) (tableData []*entity.TableData)

ConvertRawData2Model 将原数据转换成模型

func CreateGenPathList

func CreateGenPathList(tplList []*entity.TplModel) (err error)

CreateGenPathList 创建目录

func FormatAndImport

func FormatAndImport(filename string) (err error)

FormatAndImport 格式化并导包

func GenFile

func GenFile(tpl *template.Template, outputPath, filename string, dataModel interface{}) (err error)

GenFile 创建文件

func GetRawTablesData

func GetRawTablesData(connection string) (tables []*core.Table, err error)

GetRawTablesData 获取源数据

func ReadDirGetTemplate

func ReadDirGetTemplate(path string, tplFunc template.FuncMap) (tplList []*entity.TplModel, err error)

ReadDirGetTemplate 读取文件夹将其中的文件制作成tpl模板

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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