(t *testing.T, pool *pgxpool.Pool)
| 67 | } |
| 68 | |
| 69 | func TruncateAll(t *testing.T, pool *pgxpool.Pool) { |
| 70 | t.Helper() |
| 71 | err := truncateAll(context.Background(), pool) |
| 72 | if err != nil { |
| 73 | t.Fatalf("failed to truncate tables: %v", err) |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func runMigrations(ctx context.Context, pool *pgxpool.Pool) error { |
| 78 | migrationsDir := filepath.Join(projectRoot(), "migrations") |