subString method

StringField subString(
  1. int startIndex,
  2. int length
)

Get string db value with SUBSTR() function applied.

Implementation

StringField subString(int startIndex, int length) {
  var result = StringField();
  result.queryBuilder = () => 'SUBSTR(${buildQuery()},$startIndex,$length)';
  result.parametersBuilder = () => getParameters();
  return result;
}