File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ type Database struct {
1212}
1313
1414func NewDatabase () * Database {
15- dsn := Config .GetString (Config .RelationDBConfig + "DB .Username" ) + ":" + Config .GetString (Config .RelationDBConfig + ".Password" ) + "@tcp(" + Config .GetString (Config .RelationDBConfig + ".Host" ) + ":" + Config .GetString (Config .RelationDBConfig + ".Port" ) + ")/" + Config .GetString (Config .RelationDBConfig + ".Database" ) + "?charset=utf8mb4&parseTime=True&loc=Local"
15+ dsn := Config .GetString (Config .RelationDBConfig + ".Username" ) + ":" + Config .GetString (Config .RelationDBConfig + ".Password" ) + "@tcp(" + Config .GetString (Config .RelationDBConfig + ".Host" ) + ":" + Config .GetString (Config .RelationDBConfig + ".Port" ) + ")/" + Config .GetString (Config .RelationDBConfig + ".Database" ) + "?charset=utf8mb4&parseTime=True&loc=Local"
1616 db , err := gorm .Open (mysql .Open (dsn ), & gorm.Config {})
1717
1818 if err != nil {
You can’t perform that action at this time.
0 commit comments