crud

package
v1.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FunTemplate added in v1.3.6

func FunTemplate() string

FunTemplate .

func FunTemplatePackage added in v1.3.6

func FunTemplatePackage() string

FunTemplatePackage .

func PoDefContent added in v1.8.0

func PoDefContent() string

PoDefContent .

Types

type Field added in v1.3.3

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

Field .

type SturctContent

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

SturctContent .

type Table2Struct

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

Table2Struct .

func NewTable2Struct

func NewTable2Struct() *Table2Struct

NewTable2Struct .

func (*Table2Struct) DB

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

DB .

func (*Table2Struct) Dsn

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

Dsn .

func (*Table2Struct) RealNameMethod

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

RealNameMethod .

func (*Table2Struct) Run

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

Run .

func (*Table2Struct) TagKey

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

TagKey .

Jump to

Keyboard shortcuts

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