code: func NewDbMapFromConfig(config *mysql.Config, maxOpenConns int) (*gorp.DbMap, error) {
  	adjustMySQLConfig(config)
  
  	db, err := sqlOpen("mysql", config.FormatDSN())
  	if err != nil {
  		return nil, err
  	}
  	if err = db.Ping(); err != nil {
  		return nil, err
  	}
  	setMaxOpenConns(db, maxOpenConns)
  
  	dialect := gorp.MySQLDialect{Engine: "InnoDB", Encoding: "UTF8"}
  	dbmap := &gorp.DbMap{Db: db, Dialect: dialect, TypeConverter: BoulderTypeConverter{}}
  
  	initTables(dbmap)
  
  	return dbmap, err
  }
docs: // NewDbMapFromConfig functions similarly to NewDbMap, but it takes the
  // decomposed form of the connection string, a *mysql.Config.