Skip to content

Allow to pass an object to createCUBRIDConnection() #27

Closed

Description

@kadishmal

Migrated from http://jira.cubrid.org/browse/APIS-592.

The current API is:

/**
 * Creates a new connection
 * @param brokerServer
 * @param brokerPort
 * @param user
 * @param password
 * @param database
 * @return {*}
 */
exports.createCUBRIDConnection = function (brokerServer, brokerPort, user, password, database) {
  return new _CUBRIDConnection(brokerServer, brokerPort, user, password, database);
};

This requires to connect to CUBRID Broker as follows:

var conn = CUBRID.createCUBRIDConnection(conf.cubrid.host, conf.cubrid.port, conf.cubrid.user, conf.cubrid.password, conf.cubrid.dbname);

It would be convenient to have the following option:

var conf = {
      cubrid: {
        host: '',
        user: '',
        password: '',
        dbname: ''
      }
};

var conn = CUBRID.createCUBRIDConnection(conf.cubrid);

Activity

  1. self-assigned this
    on Feb 1, 2015
  2. added this to the v2.1.0 milestone on Feb 1, 2015
  3. kadishmal commented on Feb 1, 2015

    @kadishmal
    ContributorAuthor

    Implemented in v2.1.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions