addFrameBoundaryElement method

void addFrameBoundaryElement(
  1. num exp
)

Implementation

void addFrameBoundaryElement(num exp) {
  if (exp == 0) {
    statement.buffer.write('CURRENT ROW');
  } else if (exp < 0) {
    Literal(exp.abs()).compileWith(this);
    statement.buffer.write(' PRECEDING');
  } else {
    Literal(exp.abs()).compileWith(this);
    statement.buffer.write(' FOLLOWING');
  }
}