and method
inherited
Continue a conditional statement with an AND condition.
openBracket
and closeBracket
can be made true to apply simple grouping to
conditional statements.
Implementation
WhereOperation and(Field field,
{bool openBracket = false, bool closeBracket = false}) {
if (_clauses.isEmpty) {
throw StanzaException(
'A query WHERE clause must start with WHERE, not AND.');
}
if (openBracket) bracketDepth++;
if (closeBracket) bracketDepth--;
var package =
WherePackage('AND', field, openBracket, closeBracket, _clauses, this);
var op = WhereOperation(package);
return op;
}