Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type I ¶
type I interface { TransType(filedType string, nullable string) string GetTableStructure(schema string, tables []string) []vars.Structure }
func GetInstance ¶
func GetInstance(config vars.DatabaseConfig) I
type Mysql ¶
type Mysql struct {
PublicFunc
}
func NewMysql ¶
func NewMysql(config vars.DatabaseConfig) *Mysql
func (*Mysql) GetTableStructure ¶
func (*Mysql) HasSpecialType ¶ added in v0.3.0
type Postgres ¶
type Postgres struct {
PublicFunc
}
func NewPostgres ¶
func NewPostgres() *Postgres
func (*Postgres) GetTableStructure ¶
type PublicFunc ¶
type PublicFunc struct {
// contains filtered or unexported fields
}
PublicFunc 公共方法,可复用
Click to show internal directories.
Click to hide internal directories.