Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(client): Reduce SQL boilerplate code #1758

Merged
merged 21 commits into from
Mar 14, 2020
Prev Previous commit
Next Next commit
u
  • Loading branch information
aeneasr committed Mar 13, 2020
commit 47e1f147bf24660afad7984e270bc448f148f3bf
4 changes: 1 addition & 3 deletions consent/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ func createSQL(t *testing.T,dbName string, db *sqlx.DB) driver.Registry {
x.CleanSQL(t, db)
conf := internal.NewConfigurationWithDefaults()
reg := internal.NewRegistrySQL(conf, db)
if _, err := reg.CreateSchemas(dbName); err != nil {
panic(err)
}
require.NoError(t, reg.CreateSchemas(dbName), "db: %s", db.DriverName())

return reg
}
Expand Down