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 {
	OrdinalPosition int
	ColumnName      string
	ColumnNameCase  string
	AutoIncrement   string
	PK              string
	DataType        string
	DataLength      int
	IsNullValue     string
	DefaultValue    string
	ColumnComment   string
}

func GetColumnInfos

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

type IndexInfo

type IndexInfo struct {
	IndexId        int
	IndexName      string
	IndexComment   string
	IndexType      string
	IndexColumnId  int
	ColumnId       int
	ColumnName     string
	Sort           string
	Unique         string
	ColumnNameCase string
}

func GetIndexInfos

func GetIndexInfos(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() (table_infos []TableInfo, err error)

Jump to

Keyboard shortcuts

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