Versions in this module Expand all Collapse all v0 v0.3.0 Apr 14, 2016 Changes in this version + type CheckFunc func(*sql.DB, Check) (*CheckResult, error) type CheckResult + func CheckQueryBool(db *sql.DB, check Check, waitFor bool) (*CheckResult, error) v0.2.2 Mar 23, 2016 Changes in this version + var Error = log.New(os.Stderr, "ERROR: ", log.Ldate | log.Ltime | log.Lshortfile) + func DiffPretty(a, b string) string + func FindCheckInCheckResults(needle Check, list []CheckResult) int + func NewProblem(columns []string, fields []interface{}) string + func ReportProblems(results []CheckResult) (int, string) + func ResultInSlice(needle CheckResult, list []CheckResult) bool + func StringInSlice(needle string, list []string) bool + func ToCSVString(keys, values []string) string + func ToTabString(values []string) string + func WriteReport(results []CheckResult, f io.Writer) error + func WriteReportFile(results []CheckResult, filePath string) error + type Check struct + Assert string + Description string + Query string + func GetChecks(searchDir string) ([]*Check, error) + func ReadCheck(f io.Reader) (*Check, error) + func ReadCheckFile(filePath string) (*Check, error) + type CheckResult struct + Check Check + Columns Row + Problems []Row + func CheckQueryAbsent(db *sql.DB, check Check) (*CheckResult, error) + func CheckQueryPresent(db *sql.DB, check Check) (*CheckResult, error) + func DiffResults(first, second []CheckResult) []CheckResult + func FailedCheck(c *Check, message string) *CheckResult + func ReadReport(f io.Reader) ([]CheckResult, error) + func ReadReportFile(filePath string) ([]CheckResult, error) + func RunChecks(dbType, dbConnString string, checks []*Check, concurrency int) ([]CheckResult, error) + func (c CheckResult) HasProblems() bool + func (c CheckResult) String() string + type Row []string + func DiffRows(first, second []Row) []Row + func NewRow(fields []interface{}) Row + func (r Row) String() string