toSQL<T extends SqlType> 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<T extends SqlType>() {
var sql = <String>[];
for (int i = 0; i < _whereBodies.length; i++) {
sql.add('( ${_whereBodies[i].toSQL<T>()} )');
}
return sql.join(' AND ');
}