Documentation ¶
Index ¶
- Variables
- func GetSQLFileContent(filePattern string) (string, error)
- func ReplaceCharset(sqlStr string, srcCharset string, destCharset string, checkCreateDDL ...bool) string
- func Sync(c *Config, mc *EmailConfig, dbOperators ...internal.DBOperator) (sta *internal.Statics, err error)
- type Comparer
- type Config
- type DBOperator
- type EmailConfig
- type MySchemaData
- func (m *MySchemaData) Begin() (*sql.Tx, error)
- func (m *MySchemaData) Close() error
- func (m *MySchemaData) DBEngine() string
- func (m *MySchemaData) Exec(query string) (sql.Result, error)
- func (m *MySchemaData) GetTableNames() ([]string, error)
- func (m *MySchemaData) GetTableSchema(name string) (schema string, err error)
- func (m *MySchemaData) Query(query string, args ...interface{}) (*sql.Rows, error)
- type SendEmail
Constants ¶
This section is empty.
Variables ¶
View Source
var HTMLDocTemplate = `` /* 373-byte string literal not displayed */
Functions ¶
func GetSQLFileContent ¶ added in v0.2.1
func ReplaceCharset ¶ added in v0.2.1
func ReplaceCharset(sqlStr string, srcCharset string, destCharset string, checkCreateDDL ...bool) string
ReplaceCharset 替换DDL语句中的字符集
func Sync ¶
func Sync(c *Config, mc *EmailConfig, dbOperators ...internal.DBOperator) (sta *internal.Statics, err error)
Types ¶
type Config ¶
type DBOperator ¶ added in v0.1.1
type DBOperator = internal.DBOperator
type EmailConfig ¶
type MySchemaData ¶
type MySchemaData struct { Data string // contains filtered or unexported fields }
MySchemaData db schema data
func NewMySchemaData ¶
func NewMySchemaData(schema string, dbType string) *MySchemaData
NewMySchemaData object
func (*MySchemaData) Close ¶
func (m *MySchemaData) Close() error
func (*MySchemaData) DBEngine ¶ added in v0.0.5
func (m *MySchemaData) DBEngine() string
func (*MySchemaData) Exec ¶ added in v0.0.5
func (m *MySchemaData) Exec(query string) (sql.Result, error)
Exec execute sql query
func (*MySchemaData) GetTableNames ¶
func (m *MySchemaData) GetTableNames() ([]string, error)
GetTableNames table names
func (*MySchemaData) GetTableSchema ¶
func (m *MySchemaData) GetTableSchema(name string) (schema string, err error)
GetTableSchema table schema
Click to show internal directories.
Click to hide internal directories.