mysql

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dict = map[string]string{
	"bigint":             "int64",
	"bigint unsigned":    "uint64",
	"binary":             "[]byte",
	"bit":                "bool",
	"blob":               "[]byte",
	"bool":               "bool",
	"boolean":            "bool",
	"char":               "string",
	"date":               "time.Time",
	"datetime":           "time.Time",
	"decimal":            "float64",
	"double":             "float64",
	"enum":               "string",
	"float":              "float64",
	"int":                "int",
	"int unsigned":       "uint",
	"longblob":           "[]byte",
	"longtext":           "string",
	"mediumblob":         "[]byte",
	"mediumint":          "int",
	"mediumint unsigned": "uint",
	"mediumtext":         "string",
	"numeric":            "float64",
	"real":               "float64",
	"set":                "string",
	"smallint":           "int",
	"smallint unsigned":  "uint",
	"text":               "string",
	"time":               "time.Time",
	"timestamp":          "time.Time",
	"tinyblob":           "[]byte",
	"tinyint":            "int",
	"tinyint unsigned":   "uint",
	"varbinary":          "[]byte",
	"varchar":            "string",
	"year":               "time.Time",
}

Functions

This section is empty.

Types

type Mysql

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

func (*Mysql) Connect

func (d *Mysql) Connect(cfg *core.Config) error

func (*Mysql) GetColumns

func (d *Mysql) GetColumns(tableName string) []*core.Column

func (*Mysql) GetDict

func (s *Mysql) GetDict() map[string]string

func (*Mysql) GetIndexs

func (*Mysql) GetIndexs(tableName string) []*core.Index

func (*Mysql) GetTables

func (d *Mysql) GetTables() []*core.Table

Jump to

Keyboard shortcuts

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