sequenceNameNotEqualTo method

QueryBuilder<SequenceRecord, SequenceRecord, QAfterWhereClause> sequenceNameNotEqualTo(
  1. String sequenceName
)

Implementation

QueryBuilder<SequenceRecord, SequenceRecord, QAfterWhereClause>
    sequenceNameNotEqualTo(String sequenceName) {
  return QueryBuilder.apply(this, (query) {
    if (query.whereSort == Sort.asc) {
      return query
          .addWhereClause(IndexWhereClause.between(
            indexName: r'sequenceName',
            lower: [],
            upper: [sequenceName],
            includeUpper: false,
          ))
          .addWhereClause(IndexWhereClause.between(
            indexName: r'sequenceName',
            lower: [sequenceName],
            includeLower: false,
            upper: [],
          ));
    } else {
      return query
          .addWhereClause(IndexWhereClause.between(
            indexName: r'sequenceName',
            lower: [sequenceName],
            includeLower: false,
            upper: [],
          ))
          .addWhereClause(IndexWhereClause.between(
            indexName: r'sequenceName',
            lower: [],
            upper: [sequenceName],
            includeUpper: false,
          ));
    }
  });
}