mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: privatize table columns check
This commit is contained in:
committed by
Ariel Mashraki
parent
07570c5e3f
commit
f12ef91829
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user