Documentation
¶
Overview ¶
/ MySQL InnoDB Storage ENGINE Client
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( INT_TYPES = []string{"tinyint", "smallint", "mediumint", "int", "integer", "bigint", "float", "double", "real", "decimal", "numeric", "bit"} DATETIME_TYPES = []string{"year", "date", "time", "datetime", "timestamp"} STRING_TYPES = []string{"char", "binary", "varchar", "varbinary", "tinyblob", "text", "tinytext", "mediumblob", "mediumtext", "longblob", "longtext", "enum", "set"} )
MySQLのカラム型種別(大きく数値型、日時型、文字列型に分ける)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MySQL MySQLConfig
}
func GetMySQLConfig ¶
func GetMySQLConfig() (config Config)
type MySQLClient ¶
func NewMySQLClient ¶
func NewMySQLClient(params MySQLDSNParams) (*MySQLClient, error)
func (*MySQLClient) GetTables ¶
func (client *MySQLClient) GetTables() ([]MySQLTable, error)
type MySQLConfig ¶
type MySQLDSNParams ¶
type MySQLIndex ¶
type MySQLTable ¶
type MySQLTable struct { Name string Indexes []MySQLIndex }
Click to show internal directories.
Click to hide internal directories.