Join constructor

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

Implementation

Join(this.table, this.on, {this.as = ''}) {
  if (as.isEmpty && table.contains(' ')) {
    as = table.split(' ').last.trim();
    table = table.split(' ').first.trim();
  }
}