metactxdb

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

View Source
var Cockdb2GoMap = map[string]string{
	"char":    "string",
	"varchar": "string",
	"text":    "string",
	"bit":     "byte",
	"tinyint": "int8",

	"smallint":  "int16",
	"mediumint": "int32",
	"int":       "int32",
	"integer":   "int32",
	"bigint":    "int64",

	"double":      "float64",
	"decimal":     "float64",
	"numeric":     "float64",
	"int32":       "int32",
	"int64":       "int64",
	"string":      "string",
	"time":        "string",
	"date":        "time.Time",
	"datetime":    "time.Time",
	"timestamp":   "time.Time",
	"timestamptz": "time.Time",
	"uuid":        "string",
	"bool":        "bool",
	"boolean":     "bool",
	"serial2":     "int16",
	"serial4":     "int32",
	"serial8":     "int64",
	"money":       "float64",
	"int2":        "int16",
	"int4":        "int32",
	"int8":        "int64",
	"float4":      "float32",
	"float8":      "float64",
}

Functions

func InjectMetaCtxDb

func InjectMetaCtxDb(s *MetaCtxDb)

func LoadMetaCtxDb

func LoadMetaCtxDb() baseiface.ISingleton

Types

type MetaCtxCockdb

type MetaCtxCockdb struct {
	*MetaCtxDb
}

func NewMetaCtxCockdb

func NewMetaCtxCockdb() *MetaCtxCockdb

type MetaCtxDb

type MetaCtxDb struct {
	basedto.BaseEntitySingle
	// contains filtered or unexported fields
}

func FindBeanMetaCtxDb

func FindBeanMetaCtxDb() *MetaCtxDb

FindBeanMetaCtxDb

func NewMetaCtxDb

func NewMetaCtxDb() *MetaCtxDb

func (*MetaCtxDb) FindEsType

func (this *MetaCtxDb) FindEsType(fieldType string) (esType string)

func (*MetaCtxDb) FindGoType

func (this *MetaCtxDb) FindGoType(fieldType string) (goType string)

func (*MetaCtxDb) FindProtoType

func (this *MetaCtxDb) FindProtoType(fieldType string) (pbType string)

type MetaCtxMysql

type MetaCtxMysql struct {
	*MetaCtxDb
}

@Title 文件名称: MetaCtxMysql.go @Description 描述: 元数据--字典

@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)

func NewMetaCtxMysql

func NewMetaCtxMysql() *MetaCtxMysql

type MetaCtxPostgres

type MetaCtxPostgres struct {
	*MetaCtxDb
}

func NewMetaCtxPostgres

func NewMetaCtxPostgres() *MetaCtxPostgres

Jump to

Keyboard shortcuts

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