示例#1
0
func setup(t *testing.T) {
	d := NewDriver(pgURL)
	driver.SetupDriver(d)
	execQuery(t, "DELETE FROM people")
	execQuery(t, "DELETE FROM posts")
}
示例#2
0
// SetupDriver is for configuring database driver
func SetupDriver(d driver.Driver) {
	driver.SetupDriver(d)
}
示例#3
0
文件: auto.go 项目: waterlink/rebecca
func init() {
	d := pg.NewDriver(pgURL())
	driver.SetupDriver(d)
}