crud

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrudTemplate

func CrudTemplate() string

func FunTemplate added in v1.3.6

func FunTemplate() string

func FunTemplatePackage added in v1.3.6

func FunTemplatePackage() string

Types

type Field added in v1.3.3

type Field struct {
	Column     string
	Type       string
	Value      string
	Arg        string
	StructName string
}

type SturctContent

type SturctContent struct {
	Name          string
	TableRealName string
	Content       string
	Fields        []Field
	NumberFields  []Field
}

type Table2Struct

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

func NewTable2Struct

func NewTable2Struct() *Table2Struct

func (*Table2Struct) DB

func (t *Table2Struct) DB(d *sql.DB) *Table2Struct

func (*Table2Struct) Dsn

func (t *Table2Struct) Dsn(d string) *Table2Struct

func (*Table2Struct) RealNameMethod

func (t *Table2Struct) RealNameMethod(r string) *Table2Struct

func (*Table2Struct) Run

func (t *Table2Struct) Run() (result []SturctContent, e error)

func (*Table2Struct) TagKey

func (t *Table2Struct) TagKey(r string) *Table2Struct

Jump to

Keyboard shortcuts

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