lib/methods/datasource.js
function _constructor(host, port, schema, adapter, user, password, database, identity) {
        if (_self.cleanArguments(arguments).length == 1 && typeof arguments[0] === 'object'){
            _self.host = arguments[0].host;
            _self.port = arguments[0].port;
            _self.schema = arguments[0].schema;
            _self.adapter = arguments[0].adapter;
            _self.user = arguments[0].user;
            _self.password = arguments[0].password;
            _self.database = arguments[0].database;
            _self.identity = arguments[0].identity;
            _self.validate();
        } else {
            _self.host = host;
            _self.port = port;
            _self.schema = schema;
            _self.adapter = adapter;
            _self.user = user;
            _self.password = password;
            _self.database = database;
            if(identity) _self.identity = identity;
        }
    }
function _constructor(host, port, schema, adapter, user, password, database, identity) {
        if (_self.cleanArguments(arguments).length == 1 && typeof arguments[0] === 'object'){
            _self.host = arguments[0].host;
            _self.port = arguments[0].port;
            _self.schema = arguments[0].schema;
            _self.adapter = arguments[0].adapter;
            _self.user = arguments[0].user;
            _self.password = arguments[0].password;
            _self.database = arguments[0].database;
            _self.identity = arguments[0].identity;
            _self.validate();
        } else {
            _self.host = host;
            _self.port = port;
            _self.schema = schema;
            _self.adapter = adapter;
            _self.user = user;
            _self.password = password;
            _self.database = database;
            if(identity) _self.identity = identity;
        }
    }
constructor