xtype

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	schema.Column

	VarName string // 对应的 golang 中的变量名称

	XType *XType
	// contains filtered or unexported fields
}

func (*Field) GetArgNames

func (f *Field) GetArgNames() []string

type Func

type Func struct {
	objs.Object
	RecvName  string
	RecvType  string
	RecvIsPtr bool
}

type XType

type XType struct {
	File      string   // 所在文件名称
	Package   string   // 包全称
	Name      string   // 名称
	TableName string   // 对应的数据库表名
	Fields    []*Field // 结构体对应的成员列表
	Funcs     []*Func  // 结构体对应的函数列表
	// contains filtered or unexported fields
}

func (*XType) IsBlobReadWriter

func (x *XType) IsBlobReadWriter() bool

IsBlobReadWriter 是否实现了 BlobReadWriter 接口

func (*XType) ParseFields

func (p *XType) ParseFields(thisPkg string, st *ast.StructType, structMap map[string]*XType, x *XTypeParser) error

type XTypeParser

type XTypeParser struct {
	// contains filtered or unexported fields
}

func NewXTypeParser

func NewXTypeParser(dialect string, logger logo.Logger) *XTypeParser

func (*XTypeParser) Parse

func (x *XTypeParser) Parse(name, pkg, dir string) (*XType, error)

Jump to

Keyboard shortcuts

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