plugin

package
v0.20.14 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TagString = "gen"

Functions

func MargeTags added in v0.10.12

func MargeTags(tags ...*FieldTag) string

func New

func New() *dao

Types

type Field added in v0.10.10

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 added in v0.10.12

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

func (*FieldTag) String added in v0.10.12

func (t *FieldTag) String() string

type MapFields added in v0.10.10

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

type Schema added in v0.10.10

type Schema struct {
	Name    string
	PK      *Field
	MFields map[string]*Field
	Fields  []*Field
	SDField *Field
	Desc    *generator.MessageDescriptor
	Table   string
	Deep    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