Skip to content

Commit

Permalink
style(generate): remove verbose var
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1v3r committed Dec 9, 2021
1 parent 0a91754 commit 38eb1fe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/model/options.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package model

import (
"regexp"

"gorm.io/gorm"
)

type SchemaNameOpt func(*gorm.DB) string

// get mysql db' name
var dbNameReg = regexp.MustCompile(`/\w+\??`)

var defaultMysqlSchemaNameOpt = SchemaNameOpt(func(db *gorm.DB) string {
return db.Migrator().CurrentDatabase()
})
Expand Down

0 comments on commit 38eb1fe

Please sign in to comment.