scheme

package
v0.0.0-...-89714dd Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Desc

type Desc struct {
	Field   sql.NullString
	Type    sql.NullString
	Null    sql.NullString
	Key     sql.NullString
	Default sql.NullString
	Extra   sql.NullString
}

func (Desc) Print

func (s Desc) Print()

func (Desc) ToDescDetails

func (s Desc) ToDescDetails() DescDetails

func (Desc) ToString

func (s Desc) ToString() string

type DescDetail

type DescDetail struct {
	Key   string
	Value string
}

type DescDetails

type DescDetails struct {
	List []DescDetail
}

type Table

type Table struct {
	Name    string
	Columns []*Desc
}

func NewTable

func NewTable(n string) *Table

func (*Table) DescKeys

func (t *Table) DescKeys() []string

func (*Table) GetColumns

func (t *Table) GetColumns(db *sql.DB)

テーブル詳細取得

func (*Table) Print

func (t *Table) Print()

type Tables

type Tables struct {
	List []*Table
}

func (Tables) Print

func (ts Tables) Print()

func (*Tables) Push

func (ts *Tables) Push(t *Table)

Jump to

Keyboard shortcuts

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