...
|
...
|
@@ -40,6 +40,7 @@ func OpenGormPGDB(source string, logMode string) *gorm.DB { |
|
|
PreferSimpleProtocol: true, // disables implicit prepared statement usage
|
|
|
}), &gorm.Config{
|
|
|
Logger: NewLogger(logMode), //newLogger,
|
|
|
DisableAutomaticPing: true,
|
|
|
})
|
|
|
if err != nil {
|
|
|
panic(err)
|
...
|
...
|
|