Documentation
¶
Overview ¶
Package testsql generates test data from SQL files before testing and clears it after finished.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config represents a configuration for TestSQL.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set represents a set container
type TestSQL ¶
TestSQL is the main object to generate/clear test data.
func New ¶
New initializes sql.DB, creates test database, and creates all tables.
func (*TestSQL) DropTestDB ¶
func (ts *TestSQL) DropTestDB()
DropTestDB drops the database created by TestSQL.
func (*TestSQL) Exec ¶
Exec generates data from sql string.
Click to show internal directories.
Click to hide internal directories.