2017-11-09 14:51:14 +00:00
|
|
|
package testing
|
|
|
|
|
|
|
|
import "github.com/8thlight/vulcanizedb/pkg/repositories"
|
|
|
|
|
|
|
|
func ClearData(postgres repositories.Postgres) {
|
2017-11-13 15:58:36 +00:00
|
|
|
postgres.Db.MustExec("DELETE FROM watched_contracts")
|
2017-11-09 14:51:14 +00:00
|
|
|
postgres.Db.MustExec("DELETE FROM transactions")
|
|
|
|
postgres.Db.MustExec("DELETE FROM blocks")
|
|
|
|
}
|