Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LatestSQLResult = &SQLDumpResult{}
Functions ¶
func ComposeSQLVersion ¶
func ComposeSQLVersion() string
Types ¶
type SQLDump ¶
type SQLDump struct { }
func NewSQLDump ¶
func NewSQLDump() *SQLDump
type SQLDumpResult ¶
type SQLDumpResult struct {
Tables []*SQLTable `json:"tables"`
}
func (*SQLDumpResult) FindTable ¶
func (this *SQLDumpResult) FindTable(tableName string) *SQLTable
type SQLExecutor ¶
type SQLExecutor struct {
// contains filtered or unexported fields
}
SQLExecutor 安装或升级SQL执行器
func NewSQLExecutor ¶
func NewSQLExecutor(dbConfig *dbs.DBConfig) *SQLExecutor
func NewSQLExecutorFromCmd ¶
func NewSQLExecutorFromCmd() (*SQLExecutor, error)
func (*SQLExecutor) Run ¶
func (this *SQLExecutor) Run(showLog bool) error
type SQLField ¶
func (*SQLField) EqualDefinition ¶
type SQLRecord ¶
type SQLRecordsTable ¶
type SQLTable ¶
type SQLTable struct { Name string `json:"name"` Engine string `json:"engine"` Charset string `json:"charset"` Definition string `json:"definition"` Fields []*SQLField `json:"fields"` Indexes []*SQLIndex `json:"indexes"` Records []*SQLRecord `json:"records"` }
func (*SQLTable) FindRecord ¶
Click to show internal directories.
Click to hide internal directories.