Table returns the selected table.
()
| 2012 | |
| 2013 | // Table returns the selected table. |
| 2014 | func (s *Selector) Table() *SelectTable { |
| 2015 | if len(s.from) == 0 { |
| 2016 | return nil |
| 2017 | } |
| 2018 | return selectTable(s.from[0]) |
| 2019 | } |
| 2020 | |
| 2021 | // selectTable returns a *SelectTable from the given TableView. |
| 2022 | func selectTable(t TableView) *SelectTable { |