join method

  1. @override
QueryBuilder join(
  1. String table,
  2. String firstColumn, [
  3. String? operator,
  4. String? secondColumn,
  5. String type = 'INNER',
  6. bool where = false,
])
inherited

Implementation

@override
QueryBuilder join(
  String table,
  String firstColumn, [
  String? operator,
  String? secondColumn,
  String type = 'INNER',
  bool where = false,
]) {
  String clause = "$type JOIN $table";
  if (operator != null && secondColumn != null) {
    clause += " ON $firstColumn $operator $secondColumn";
  }
  joins.add(clause);
  return this;
}