src/bin/pgrunner.js
function get_server_opts (opts) {
	debug.assert(opts).is('object');
	debug.assert(opts.settings).is('object');
	return {
		'dbconfig': opts.dbconfig,
		'host': opts.settings.host,
		'port': opts.settings.port,
		'user': opts.settings.user,
		'database': opts.settings.database
	};
}
function get_server_opts (opts) {
	debug.assert(opts).is('object');
	debug.assert(opts.settings).is('object');
	return {
		'dbconfig': opts.dbconfig,
		'host': opts.settings.host,
		'port': opts.settings.port,
		'user': opts.settings.user,
		'database': opts.settings.database
	};
}
Returns server options

@param opts
@returns {{database: *, port: (*|number), dbconfig: *, host: (*|string), user: *}}