createJoin method

Join createJoin(
  1. On on, {
  2. String as = '',
})

Creates a Join object for this table with the specified join condition.

on is the join condition as is an optional alias for the joined table

Returns a Join object that can be used in SQL queries.

Implementation

Join createJoin(On on, {String as = ''}) {
  return Join(name, on, as: as);
}