修复log-mode失效的问题

This commit is contained in:
piexlmax
2022-02-14 10:45:19 +08:00
parent 1a66f52f75
commit edec8788c3
5 changed files with 87 additions and 6 deletions
+4
View File
@@ -16,3 +16,7 @@ type Mysql struct {
func (m *Mysql) Dsn() string {
return m.Username + ":" + m.Password + "@tcp(" + m.Path + ":" + m.Port + ")/" + m.Dbname + "?" + m.Config
}
func (m *Mysql) GetLogMode() string {
return m.LogMode
}