model

package
v1.0.28 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 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 added in v1.0.28

type Column struct {
	Name     string `db:"COLUMN_NAME"`
	DataType string `db:"DATA_TYPE"`
	Key      string `db:"COLUMN_KEY"`
	Extra    string `db:"EXTRA"`
	Comment  string `db:"COLUMN_COMMENT"`
}

type DDL

type DDL struct {
	Table string `db:"Table"`
	DDL   string `db:"Create Table"`
}

type DDLModel

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

func NewDDLModel

func NewDDLModel(conn sqlx.SqlConn) *DDLModel

func (*DDLModel) ShowDDL

func (m *DDLModel) ShowDDL(table ...string) ([]string, error)

type InformationSchemaModel added in v1.0.23

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

func NewInformationSchemaModel added in v1.0.23

func NewInformationSchemaModel(conn sqlx.SqlConn) *InformationSchemaModel

func (*InformationSchemaModel) FindByTableName added in v1.0.28

func (m *InformationSchemaModel) FindByTableName(db, table string) ([]*Column, error)

func (*InformationSchemaModel) GetAllTables added in v1.0.23

func (m *InformationSchemaModel) GetAllTables(database string) ([]string, error)

Jump to

Keyboard shortcuts

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