orm

package
v0.0.0-...-ed667ed Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(dbFile string, name string, tbs string)

Gen gen

func GetInsertColumn

func GetInsertColumn(args []*ColumnInfo) string

func GetObjColumn

func GetObjColumn(args []*ColumnInfo) string

func GetTableFieldCounts

func GetTableFieldCounts(args []*ColumnInfo) string

func GetTableFieldNames

func GetTableFieldNames(args []*ColumnInfo) string

func GetUpdateColumn

func GetUpdateColumn(args []*ColumnInfo) string

func SetDefault

func SetDefault(ci *ColumnInfo) string

Types

type ColumnInfo

type ColumnInfo struct {
	Field      string
	Type       string
	Collation  *string
	Null       string
	Key        string
	Default    *string
	Extra      string
	Privileges string
	Comment    string
	GoType     string
	ThriftType string
	Required   string
}

ColumnInfo table column info

Jump to

Keyboard shortcuts

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