LeftJoin returns all records from the left table (table1), and the matched records from the right table (table2). The result is NULL from the right side, if there is no match. <!> LeftJoin transforms an expr column to a raw column
(right *DataTable, on []JoinOn)
| 24 | // The result is NULL from the right side, if there is no match. |
| 25 | // <!> LeftJoin transforms an expr column to a raw column |
| 26 | func (left *DataTable) LeftJoin(right *DataTable, on []JoinOn) (*DataTable, error) { |
| 27 | return newJoinImpl(leftJoin, []*DataTable{left, right}, on).Compute() |
| 28 | } |
| 29 | |
| 30 | // LeftJoin the tables. |
| 31 | // tables[0] is used as reference datatable. |