genmssql

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MssqlModel mssqlModel

MssqlModel mysql model from IModel

Functions

func FixElementTag

func FixElementTag(em *model.ColumnsInfo, note string) bool

FixElementTag 分析元素表注释

func FixForeignKeyTag

func FixForeignKeyTag(em *model.ColumnsInfo, note string) bool

FixForeignKeyTag 分析元素表注释(外键)

func FixNotes

func FixNotes(em *model.ColumnsInfo, note string)

FixNotes 分析元素表注释

func GetModel

func GetModel() model.IModel

GetModel get model interface. 获取model接口

Types

type ColumnKeys

type ColumnKeys struct {
	ID     int    `gorm:"column:id"`
	Name   string `gorm:"column:name"`   // 列名
	Pk     int    `gorm:"column:pk"`     // 是否主键
	Type   string `gorm:"column:tp"`     // 类型
	Length int    `gorm:"column:len"`    // 长度
	Isnull int    `gorm:"column:isnull"` // 是否为空
	Desc   string `gorm:"column:des"`    // 列注释
}

type TableDescription

type TableDescription struct {
	Name  string `gorm:"column:name"`  // 表名
	Value string `gorm:"column:value"` // 表注释
}

TableDescription 表及表注释

Jump to

Keyboard shortcuts

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