plugin

package
v0.10.12 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DriverPkg string
)

The names for packages imported in the generated code. They may vary from the final path component of the import path if the name is used by other packages.

View Source
var TagString = "dao"

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
	IsRepeated bool
	Desc       *generator.FieldDescriptor
	Map        *MapFields
	Slice      *descriptor.FieldDescriptorProto
}

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
	Fields  []*Field
	SDField *Field
	Desc    *generator.MessageDescriptor
}

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