{"size": 1230, "ext": "js", "max_stars_repo_path": "samples/components/dialogs/new_text_field/connectionBuilder.js", "max_stars_repo_name": "jkoskela/connector-plugin-sdk", "max_stars_repo_stars_event_min_datetime": "2018-10-26T15:08:25.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T04:44:53.000Z", "max_issues_repo_path": "samples/components/dialogs/new_text_field/connectionBuilder.js", "max_issues_repo_name": "jkoskela/connector-plugin-sdk", "max_issues_repo_issues_event_min_datetime": "2018-10-26T14:17:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T23:24:29.000Z", "max_forks_repo_path": "samples/components/dialogs/new_text_field/connectionBuilder.js", "max_forks_repo_name": "jkoskela/connector-plugin-sdk", "max_forks_repo_forks_event_min_datetime": "2018-11-28T23:37:27.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T21:01:27.000Z"}
{"max_stars_count": 80, "max_issues_count": 531, "max_forks_count": 85, "avg_line_length": 36.1764705882, "max_line_length": 126, "alphanum_fraction": 0.6991869919}
(function connectionbuilder(attr2)
{
    var params = {};

    params["SERVER"] = attr2["server"];
    params["PORT"] = attr2["port"];
    params["DATABASE"] = attr2["dbname"];
    params["UID"] = attr2["username"];
    params["PWD"] = attr2["password"];
    params["BOOLSASCHAR"] = "0";
    params["LFCONVERSION"] = "0";
    params["UseDeclareFetch"] = "1";
    params["Fetch"] = "2526";

    //Pull out the attributes from the connection dialog.
    //You can preserve these attributes by adding service and attributeWarehouse to the required attribute list.
    params["WH_TEST"] = attr2[connectionHelper.attributeWarehouse];
    params["SERVICE_TEST"] = attr2[connectionHelper.attributeService];
    params["VENDOR1_TEST"] = attr2[connectionHelper.attributeVendor1];
    params["VENDOR2_TEST"] = attr2[connectionHelper.attributeVendor2];
    params["VENDOR3_TEST"] = attr2[connectionHelper.attributeVendor3];

    var formattedParams = [];

    formattedParams.push(connectionHelper.formatKeyValuePair(driverLocator.keywordDriver, driverLocator.locateDriver(attr2)));

    for (var key in params)
    {
        formattedParams.push(connectionHelper.formatKeyValuePair(key, params[key]));
    }

    return formattedParams;
})
