Refactor postgres to be initialized with config

This commit is contained in:
Eric Meyer
2017-11-09 12:42:24 -06:00
parent aa52088ba7
commit 58fbeb32fd
5 changed files with 28 additions and 34 deletions
+8
View File
@@ -0,0 +1,8 @@
package testing
import "github.com/8thlight/vulcanizedb/pkg/repositories"
func ClearData(postgres repositories.Postgres) {
postgres.Db.MustExec("DELETE FROM transactions")
postgres.Db.MustExec("DELETE FROM blocks")
}