index.js
function(anyConfig) {
	var result = {};

	result.userName         = anyConfig.user || anyConfig.userName || defaultConfig.userName;
	result.password         = anyConfig.password || defaultConfig.password;
	result.server           = anyConfig.host || anyConfig.server || defaultConfig.host;
	result.options          = anyConfig.options || {};
	result.options.database = anyConfig.database || result.options.database || defaultConfig.options.database;

	if (anyConfig.instanceName || result.options.instanceName) {
		result.options.instanceName = anyConfig.instanceName || result.options.instanceName;
		result.options.port         = false;
	}
	else {
		result.options.port         = anyConfig.port || result.options.port || defaultConfig.options.port;
	}

	return result;
}
function(anyConfig) {
	var result = {};

	result.userName         = anyConfig.user || anyConfig.userName || defaultConfig.userName;
	result.password         = anyConfig.password || defaultConfig.password;
	result.server           = anyConfig.host || anyConfig.server || defaultConfig.host;
	result.options          = anyConfig.options || {};
	result.options.database = anyConfig.database || result.options.database || defaultConfig.options.database;

	if (anyConfig.instanceName || result.options.instanceName) {
		result.options.instanceName = anyConfig.instanceName || result.options.instanceName;
		result.options.port         = false;
	}
	else {
		result.options.port         = anyConfig.port || result.options.port || defaultConfig.options.port;
	}

	return result;
}
function ( anyConfig ) { var result = { } ; result . userName = anyConfig . user || anyConfig . userName || defaultConfig . userName ; result . password = anyConfig . password || defaultConfig . password ; result . server = anyConfig . host || anyConfig . server || defaultConfig . host ; result . options = anyConfig . options || { } ; result . options . database = anyConfig . database || result . options . database || defaultConfig . options . database ; if ( anyConfig . instanceName || result . options . instanceName ) { result . options . instanceName = anyConfig . instanceName || result . options . instanceName ; result . options . port = false ; } else { result . options . port = anyConfig . port || result . options . port || defaultConfig . options . port ; } return result ; }
Any DB config.

@external any-db~Config
@see {@link https://github.com/grncdr/node-any-db-adapter-spec#adaptercreateconnection}
 
Convert config provided by Any DB to the one used by Tedious.

@private
@param {any-db~Config} anyConfig
@return {Tedious~Config}
Any DB config .