lib/hapiCrudHelper.js
function addWhereClause(baseClause, k, v) {
	if (v.startsWith('>')) {
		baseClause.where(k, '>=', v.substring(1)); return
	}
	if (v.startsWith('<')) {
		baseClause.where(k, '<=', v.substring(1)); return
	}
	if (v.startsWith('~')) {
		baseClause.where(k, 'LIKE', v.substring(1)); return
	}
	if (k.endsWith('Id')) {
		baseClause.where(k.substring(0, k.length - 2) + '_id', '=', v); return
	}
	baseClause.where(k, '=', v); return
}
function addWhereClause(baseClause, k, v) {
	if (v.startsWith('>')) {
		baseClause.where(k, '>=', v.substring(1)); return
	}
	if (v.startsWith('<')) {
		baseClause.where(k, '<=', v.substring(1)); return
	}
	if (v.startsWith('~')) {
		baseClause.where(k, 'LIKE', v.substring(1)); return
	}
	if (k.endsWith('Id')) {
		baseClause.where(k.substring(0, k.length - 2) + '_id', '=', v); return
	}
	baseClause.where(k, '=', v); return
}
Adds a single WHERE clause to an existing base clause for a single request.query parameter.