func setup(t *testing.T) { d := NewDriver(pgURL) driver.SetupDriver(d) execQuery(t, "DELETE FROM people") execQuery(t, "DELETE FROM posts") }
// SetupDriver is for configuring database driver func SetupDriver(d driver.Driver) { driver.SetupDriver(d) }
func init() { d := pg.NewDriver(pgURL()) driver.SetupDriver(d) }