Go

Go

Made by DeepSource

DryRun is enabled GO-W1005

Bug risk
Major

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.

Bad practice

&gorm.Config{DryRun: true}

Recommended

&gorm.Config{DryRun: false}

References