Skip to content

Commit

Permalink
Merge pull request #4 from paradeum-team/kli
Browse files Browse the repository at this point in the history
Notes MySQL output
  • Loading branch information
likai1130 authored Nov 30, 2022
2 parents 4b4c187 + 29cf68a commit bd4ad6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/database/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func setupSimpleDatabase(c *config.Database) {
log.Fatalf("invalid DB driver '%s'", c.Driver)
}

log.Infof("db => %s", utils.Green(c.Source))
//log.Infof("db => %s", utils.Green(c.Source))
registers := make([]toolsDB.ResolverConfigure, len(c.Registers))
for i := range c.Registers {
registers[i] = toolsDB.NewResolverConfigure(
Expand All @@ -38,7 +38,7 @@ func setupSimpleDatabase(c *config.Database) {
SingularTable: true,
},
CreateBatchSize: 500, // set to 500 to solve 'too many SQL variables'
Logger: &gormLogger{SlowThreshold: 200 * time.Millisecond},
Logger: &gormLogger{SlowThreshold: 200 * time.Millisecond},
}, open)

if err != nil {
Expand Down

0 comments on commit bd4ad6e

Please sign in to comment.