iface

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFactroyDb

type IFactroyDb interface {
	IniDb(conn string) (dbinst *gorm.DB)
	SetImetaCtx(imetaCtx ImetaCtx)
	ImetaCtx() ImetaCtx

	String() string
	ToString() string

	BuildModel() *dto2.ModeFactors
	MakeModelProto() *list.List
	MakeModelProtoBody(columns *[]dto2.MetaColDto) *list.List

	FindPgPkey(table string) []dto2.MetaPkInfo

	FindColumns() (*[]dto2.MetaColDto, error)
	FindCols() ([]dto2.MetaColDto, error)

	FindTableComment()
	FindTables() []dto2.MetaTableDto
	FindFactryDto() *dto2.FacatroyDto
	SetDbClientDto(dto *baseconfig.DbClientDto)
	SetTableName(tablename string)
	FindMetadata(table string) *dto2.MetaTableDto
	FindFields(table string, fields string) string
}

type ImetaCtx

type ImetaCtx interface {
	FindProtoType(fieldType string) (goType string)
	FindEsType(fieldType string) (goType string)
	FindGoType(fieldType string) (pbType string)
}

Jump to

Keyboard shortcuts

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