Deprecated: disable foreign keys was created to aid in migrating off of the test-only in-memory database. Do not use this in new code.
(t *testing.T, db database.Store)
| 326 | // Deprecated: disable foreign keys was created to aid in migrating off |
| 327 | // of the test-only in-memory database. Do not use this in new code. |
| 328 | func DisableForeignKeysAndTriggers(t *testing.T, db database.Store) { |
| 329 | err := db.DisableForeignKeysAndTriggers(context.Background()) |
| 330 | if t != nil { |
| 331 | require.NoError(t, err) |
| 332 | } |
| 333 | if err != nil { |
| 334 | panic(err) |
| 335 | } |
| 336 | } |