Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClickhouse ¶ added in v1.0.3
func InitClickhouse(config vars.DatabaseConfig) *gorm.DB
Types ¶
type Clickhouse ¶ added in v1.0.3
type Clickhouse struct {
PublicFunc
}
func NewClickhouse ¶ added in v1.0.3
func NewClickhouse(config vars.DatabaseConfig) *Clickhouse
func (*Clickhouse) GetTableStructure ¶ added in v1.0.3
func (m *Clickhouse) GetTableStructure(schema string, tables []string) []vars.Structure
func (*Clickhouse) GetTpl ¶ added in v1.0.3
func (m *Clickhouse) GetTpl() string
func (*Clickhouse) HasSpecialType ¶ added in v1.0.3
func (m *Clickhouse) HasSpecialType(fields []vars.Field) (hasNull bool, hasTime bool)
type I ¶
type I interface { TransType(filedType string, nullable string, name string) string GetTableStructure(schema string, tables []string) []vars.Structure GetTpl() string }
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.