models

package
v0.0.0-...-73bfd39 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMainDB

func InitMainDB(conn_string string)

Types

type ColumnInfo

type ColumnInfo struct {
	ColumnName      string
	ColumnNameCase  string
	OrdinalPosition int
	IsNullAble      string
	DataType        string
	ColumnType      string
	ColumnKey       string
	Extra           string
	ColumnComment   string
}

func GetColumnInfos

func GetColumnInfos(database_name, table_name string) (column_infos []ColumnInfo, err error)

type IndexInfo

type IndexInfo struct {
	NonUnique      int
	IndexName      string
	ColumnName     string
	Comment        string
	IndexComment   string
	ColumnNameCase string
}

func GetIndexInfos

func GetIndexInfos(database_name, table_name string) (index_infos []IndexInfo, err error)

type TableInfo

type TableInfo struct {
	TableName    string
	TableType    string
	Engine       string
	TableComment string
}

func GetTableInfos

func GetTableInfos(database_name string) (table_infos []TableInfo, err error)

Jump to

Keyboard shortcuts

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