basic

package
v0.0.0-...-6215f49 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	TableCatalog           *string // 表目录
	TableSchema            *string // 表模式
	TableName              *string // 表名称
	ColumnName             *string // 字段名称
	OrdinalPosition        *int    // 字段顺序
	ColumnDefault          *string // 字段默认值
	IsNullable             *string // 是否可空
	DataType               *string // 字段类型
	CharacterMaximumLength *int    // 字段最大长度
	CharacterOctetLength   *int    // 字段最大长度
	NumericPrecision       *int    // 数字精度
	NumericScale           *int    // 数字精度
	DatetimePrecision      *int    // 时间精度
	CharacterSetName       *string // 字符集
	CollationName          *string // 字符集排序规则
	ColumnType             *string // 字段类型
	ColumnKey              *string // 字段键
	Extra                  *string // 额外信息
	Privileges             *string // 权限
	ColumnComment          *string // 字段注释
	GenerationExpression   *string // 字段生成表达式
	SrsId                  *int    // 空间参考系
}

func (*Column) GetCharacterMaximumLength

func (c *Column) GetCharacterMaximumLength() int

func (*Column) GetCharacterOctetLength

func (c *Column) GetCharacterOctetLength() int

func (*Column) GetCharacterSetName

func (c *Column) GetCharacterSetName() string

func (*Column) GetCollationName

func (c *Column) GetCollationName() string

func (*Column) GetColumnComment

func (c *Column) GetColumnComment() string

func (*Column) GetColumnDefault

func (c *Column) GetColumnDefault() string

func (*Column) GetColumnKey

func (c *Column) GetColumnKey() string

func (*Column) GetColumnName

func (c *Column) GetColumnName() string

func (*Column) GetColumnType

func (c *Column) GetColumnType() string

func (*Column) GetDataType

func (c *Column) GetDataType() string

func (*Column) GetDatetimePrecision

func (c *Column) GetDatetimePrecision() int

func (*Column) GetExtra

func (c *Column) GetExtra() string

func (*Column) GetGenerationExpression

func (c *Column) GetGenerationExpression() string

func (*Column) GetIsNullable

func (c *Column) GetIsNullable() string

func (*Column) GetNumericPrecision

func (c *Column) GetNumericPrecision() int

func (*Column) GetNumericScale

func (c *Column) GetNumericScale() int

func (*Column) GetOrdinalPosition

func (c *Column) GetOrdinalPosition() int

func (*Column) GetPrivileges

func (c *Column) GetPrivileges() string

func (*Column) GetSrsId

func (c *Column) GetSrsId() int

func (*Column) GetTableCatalog

func (c *Column) GetTableCatalog() string

func (*Column) GetTableName

func (c *Column) GetTableName() string

func (*Column) GetTableSchema

func (c *Column) GetTableSchema() string

type Generator

type Generator interface {
	Gen(wr io.Writer) error
}

type Table

type Table struct {
	TableName    *string // 表名称
	PK           *string // 主键
	TableComment *string // 表注释
}

func (*Table) GetPK

func (t *Table) GetPK() string

func (*Table) GetTableComment

func (t *Table) GetTableComment() string

func (*Table) GetTableName

func (t *Table) GetTableName() string

Jump to

Keyboard shortcuts

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