chore: build
This commit is contained in:
@@ -20,7 +20,7 @@ func Open(dsn string) (*gorm.DB, error) {
|
||||
gdb, err := gorm.Open(postgres.Open(dsn), &gorm.Config{
|
||||
Logger: logger.Default.LogMode(logger.Warn),
|
||||
SkipDefaultTransaction: true,
|
||||
PrepareStmt: true, // requêtes préparées : perf + anti-injection
|
||||
PrepareStmt: true,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("ouverture db: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user