db2entity

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db2EnOption added in v0.0.5

type Db2EnOption func(*Db2Entity)

type Db2EnOptions added in v0.0.5

type Db2EnOptions struct{}

func (Db2EnOptions) WithColumnsInter added in v0.0.5

func (Db2EnOptions) WithColumnsInter(columnsRepo domainfile.ColumnsRepo) Db2EnOption

func (Db2EnOptions) WithDbConf added in v0.0.5

func (Db2EnOptions) WithDbConf(dbConf *domainfile.DbConfig) Db2EnOption

func (Db2EnOptions) WithDomainFile added in v0.0.5

func (Db2EnOptions) WithDomainFile(dfs ...domainfile.DomainFile) Db2EnOption

func (Db2EnOptions) WithExecer added in v0.0.5

func (Db2EnOptions) WithExecer(execer pkg.Exec) Db2EnOption

func (Db2EnOptions) WithInfraer added in v0.0.7

func (Db2EnOptions) WithInfraer(infraer *infra.Infraer) Db2EnOption

func (Db2EnOptions) WithLogger added in v0.0.5

func (Db2EnOptions) WithLogger(logger log.Logger) Db2EnOption

func (Db2EnOptions) WithShareInfo added in v0.0.5

func (Db2EnOptions) WithShareInfo(shareInfo *domainfile.ShareInfo) Db2EnOption

func (Db2EnOptions) WithTpl added in v0.0.5

func (Db2EnOptions) WithTpl(tpl templates.Tpl) Db2EnOption

func (Db2EnOptions) WithWriter added in v0.0.5

func (Db2EnOptions) WithWriter(writer filedir.IfaceWriter) Db2EnOption

type Db2Entity added in v0.0.5

type Db2Entity struct {
	// 驼峰格式
	CamelStruct string

	ColumnsRepo domainfile.ColumnsRepo

	DbConf *domainfile.DbConfig
	// contains filtered or unexported fields
}

func NewDb2Entity added in v0.0.5

func NewDb2Entity(options ...Db2EnOption) *Db2Entity

func (*Db2Entity) Run added in v0.0.5

func (de *Db2Entity) Run(v *viper.Viper) error

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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