entc/gen: privatize table columns check

This commit is contained in:
Ariel Mashraki
2021-03-25 16:26:44 +02:00
committed by Ariel Mashraki
parent 07570c5e3f
commit f12ef91829
111 changed files with 1790 additions and 988 deletions

View File

@@ -1846,6 +1846,11 @@ func (s *Selector) Table() *SelectTable {
return s.from.(*SelectTable)
}
// TableName returns the name of the selected table.
func (s *Selector) TableName() string {
return s.Table().name
}
// Join appends a `JOIN` clause to the statement.
func (s *Selector) Join(t TableView) *Selector {
return s.join("JOIN", t)