model

package
v1.1.5-0...-dfb45c8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 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"`
	ColumnDefault interface{} `db:"COLUMN_DEFAULT"`
	IsNullAble    string      `db:"IS_NULLABLE"`
}

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