compileJoins method
Compile the "join" portion of the query.
Implementation
String compileJoins(List<Map<String, dynamic>> joins) {
return joins.map((join) {
final table = wrapTable(join['table']);
final type = join['type'];
final first = wrap(join['first']);
final operator = join['operator'];
final second = wrap(join['second']);
return '$type JOIN $table ON $first $operator $second';
}).join(' ');
}