code: func DBFromConfig(path string) (db *sqlx.DB, err error) {
  	var dbCfg *DBConfig
  	dbCfg, err = LoadFile(path)
  	if err != nil {
  		return nil, err
  	}
  
  	return sqlx.Open(dbCfg.DriverName, dbCfg.DataSourceName)
  }
docs: // DBFromConfig opens a sql.DB from settings in a db config file