MCPcopy
hub / github.com/ory/hydra / DeleteHydraRows

Function DeleteHydraRows

x/clean_sql.go:12–33  ·  view source on GitHub ↗
(t *testing.T, c *pop.Connection)

Source from the content-addressed store, hash-verified

10)
11
12func DeleteHydraRows(t *testing.T, c *pop.Connection) {
13 for _, tb := range []string{
14 "hydra_oauth2_access",
15 "hydra_oauth2_refresh",
16 "hydra_oauth2_code",
17 "hydra_oauth2_oidc",
18 "hydra_oauth2_pkce",
19 "hydra_oauth2_device_auth_codes",
20 "hydra_oauth2_flow",
21 "hydra_oauth2_authentication_session",
22 "hydra_oauth2_obfuscated_authentication_session",
23 "hydra_oauth2_logout_request",
24 "hydra_oauth2_jti_blacklist",
25 "hydra_oauth2_trusted_jwt_bearer_issuer",
26 "hydra_jwk",
27 "hydra_client",
28 } {
29 if err := c.RawQuery("DELETE FROM " + tb).Exec(); err != nil {
30 t.Logf(`Unable to delete rows in table "%s": %s`, tb, err)
31 }
32 }
33}

Callers 1

TearDownTestMethod · 0.92

Calls 2

ExecMethod · 0.65
LogfMethod · 0.45

Tested by 1

TearDownTestMethod · 0.74