plugin

package
v1.4.14 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TagString = "gen"

Functions

func MargeTags

func MargeTags(tags ...*FieldTag) string

func New

func New() *dao

Types

type Field

type Field struct {
	Name       string
	Type       fieldType
	Tags       []*FieldTag
	Alias      string
	Num        int
	IsRepeated bool
	Desc       *generator.FieldDescriptor
	Map        *MapFields
	Slice      *descriptor.FieldDescriptorProto
	File       *generator.FileDescriptor
}

type FieldTag

type FieldTag struct {
	Key    string
	Values []string
	Seq    string
}

func (*FieldTag) String

func (t *FieldTag) String() string

type MapFields

type MapFields struct {
	Key   *descriptor.FieldDescriptorProto
	Value *descriptor.FieldDescriptorProto
}

type Storage added in v1.3.7

type Storage struct {
	Name     string
	PK       *Field
	MFields  map[string]*Field
	Fields   []*Field
	SDField  *Field
	Desc     *generator.MessageDescriptor
	Table    string
	Deep     bool
	TypeMeta bool
}

type Tag

type Tag struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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