Documentation ¶
Index ¶
- type DSN
- type Db
- func (d *Db) CreateDb() (err error)
- func (d *Db) DB() *sql.DB
- func (d *Db) DropDb() (err error)
- func (d *Db) Dump(query string) (tableData [][]string, err error)
- func (d *Db) DumpJson(query string) (string, error)
- func (d *Db) DumpString(query string) ([][]string, error)
- func (d *Db) LoadData() (err error)
- func (d *Db) LoadDataInfiles(dir string) error
- func (d *Db) LoadSchema(data []byte) (err error)
- func (d *Db) Start() (err error)
- func (d *Db) Stop() (err error)
- func (d *Db) TableExpected(filename string) [][]string
- func (d *Db) TableGot(table, orderBy string) [][]string
- func (d *Db) TruncateAllTables(orgDB *sql.DB) error
- func (d *Db) TruncateDataTables() error
- func (d *Db) TruncateTables(tables []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct {
// contains filtered or unexported fields
}
func (*Db) LoadDataInfiles ¶
func (*Db) LoadSchema ¶
func (*Db) TableExpected ¶ added in v1.1.2
func (*Db) TruncateDataTables ¶
func (*Db) TruncateTables ¶
Click to show internal directories.
Click to hide internal directories.