toSQL method
Generates SQL by combining all conditions with AND.
Each condition is wrapped in parentheses and joined with " AND ".
Returns the combined SQL string with AND logic.
Example:
// Returns: "( condition1 ) AND ( condition2 ) AND ( condition3 )"
Implementation
@override
String toSQL() {
var sql = <String>[];
for (int i = 0; i < _whereBodies.length; i++) {
sql.add('( ${_whereBodies[i].toSQL()} )');
}
return sql.join(' AND ');
}