Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
VTParams mysql.ConnParams
}
type DBHelper ¶
type DBHelper struct {
// contains filtered or unexported fields
}
func NewDBHelper ¶
func NewDBHelper(vtParams *mysql.ConnParams) *DBHelper
type ForeignKey ¶
type Info ¶
type PrimaryKey ¶
type PrimaryKey struct {
Columns []string `json:"columns"`
}
type TableColumn ¶
type TableInfo ¶
type TableInfo struct { Name string `json:"name"` Rows int `json:"rows"` Columns []*TableColumn `json:"columns"` PrimaryKey *PrimaryKey `json:"primaryKey,omitempty"` Indexes []*Index `json:"indexes,omitempty"` ForeignKeys []*ForeignKey `json:"foreignKeys,omitempty"` }
Click to show internal directories.
Click to hide internal directories.