Functions go doc.
This commit is contained in:
parent
13c671fa3f
commit
4ab9d73a8b
7 changed files with 141 additions and 59 deletions
|
|
@ -39,7 +39,7 @@ type StatementWithProjections interface {
|
|||
}
|
||||
|
||||
type HasProjections interface {
|
||||
projections() []Projection
|
||||
projections() ProjectionList
|
||||
}
|
||||
|
||||
type SerializerStatementInterfaceImpl struct {
|
||||
|
|
@ -116,7 +116,7 @@ type StatementImpl struct {
|
|||
Clauses []Clause
|
||||
}
|
||||
|
||||
func (s *StatementImpl) projections() []Projection {
|
||||
func (s *StatementImpl) projections() ProjectionList {
|
||||
for _, clause := range s.Clauses {
|
||||
if selectClause, ok := clause.(ClauseWithProjections); ok {
|
||||
return selectClause.projections()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue