on method

Query on(
  1. dynamic tableColumn,
  2. dynamic baseColumn
)

Implementation

Query on(tableColumn, baseColumn) {
  if (_joinQuery.contains('{TABLE_COLUMN_FILL}')) {
    _joinQuery += ' AND ';
  }
  if (_self) {
    _joinQuery += table + '.' + tableColumn;
    _joinQuery += '=';
    _joinQuery += '{TABLE_COLUMN_FILL}.' + baseColumn;
  } else {
    _joinQuery += '{TABLE_COLUMN_FILL}.' + tableColumn + '=' + table + '.' + baseColumn;
  }
  return this;
}