avg method
Get new IntField object with db AVG()
function applied.
Implementation
IntField avg() {
var result = IntField();
result.queryBuilder = () => 'AVG(${buildQuery()})';
result.parametersBuilder = () => getParameters();
return result;
}