function levelrange(start, end){
	return {
		keyEncoding:'ascii',
		start:start,
		end:end + '\xff'
	}
}

function querykeys(path, starttime, endtime){
	path += '.';
	var start = path;
	var end = path;
	if(starttime){
		start += starttime;
	}
	if(endtime){
		end += endtime;
	}
	return levelrange(start, end);
}

module.exports = {
	querykeys:querykeys,
	levelrange:levelrange
}
function levelrange(start, end){
	return {
		keyEncoding:'ascii',
		start:start,
		end:end + '\xff'
	}
}

function querykeys(path, starttime, endtime){
	var start = path;
	var end = path;
	if(starttime){
		start = '.' + starttime;
	}
	if(endtime){
		end = '.' + endtime;
	}
	return levelrange(start, end);
}

module.exports = {
	querykeys:querykeys,
	levelrange:levelrange
}

Change querykeys to allow for single key selection
Change querykeys to allow for single key selection
