Added a way to disable compatibility mode message

This commit is contained in:
Antonio Busillo 2020-01-29 15:57:10 +01:00
parent 7180bd0f27
commit 6840622c8d
2 changed files with 7 additions and 1 deletions

View File

@ -66,7 +66,11 @@ func newDialect(name string, db SQLCommon) Dialect {
return dialect
}
if CompatibilityWarning {
fmt.Printf("`%v` is not officially supported, running under compatibility mode.\n", name)
}
commontDialect := &commonDialect{}
commontDialect.SetDB(db)
return commontDialect

View File

@ -11,6 +11,8 @@ import (
"time"
)
var CompatibilityWarning = true
// DB contains information for current db connection
type DB struct {
sync.RWMutex