schema

package
v0.0.0-...-85f735d Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 5 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 {
	Name string `json:"name"` // 字段名称
	Type string `json:"type"` // 字段类型
	Tag  string `json:"tag"`  // 字段标签
	Size string `json:"size"` // 字段大小
}

type Schema

type Schema struct {
	Model      interface{}
	Name       string
	Fields     []*Field
	FieldNames []string
	FieldMap   map[string]*Field
}

func Parse

func Parse(dest interface{}, d dialect.Dialect) (schema *Schema)

func (*Schema) GetField

func (s *Schema) GetField(name string) *Field

func (*Schema) RecordValues

func (s *Schema) RecordValues(dest interface{}) []interface{}

Jump to

Keyboard shortcuts

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