crud

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 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

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
}

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