model

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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

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

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

func NewInformationSchemaModel

func NewInformationSchemaModel(conn sqlx.SqlConn) *InformationSchemaModel

func (*InformationSchemaModel) FindByTableName

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

func (*InformationSchemaModel) GetAllTables

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