forked from cerc-io/ipld-eth-server
Refactor postgres to be initialized with config
This commit is contained in:
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user