Go

Go

By DeepSource

`DryRun` is enabledGO-W1005

Bug risk

If DryRun is enabled, then GORM generates SQL without executing that can be used to prepare or test generated SQL. If there's a need to execute, consider disabling DryRun.

Examples

Bad practice

&gorm.Config{DryRun: true}

Recommended

&gorm.Config{DryRun: false}

References