export OrderByClause type through alias

enables e.g. creating a collection of clauses beforehand and dynamically adding to it.
this resolves #48.
This commit is contained in:
Richard 2020-09-03 13:25:23 +02:00
parent fdde2ab9b4
commit 1c435f5c7f
7 changed files with 16 additions and 10 deletions

View file

@ -46,7 +46,7 @@ type SelectStatement interface {
GROUP_BY(groupByClauses ...jet.GroupByClause) SelectStatement
HAVING(boolExpression BoolExpression) SelectStatement
WINDOW(name string) windowExpand
ORDER_BY(orderByClauses ...jet.OrderByClause) SelectStatement
ORDER_BY(orderByClauses ...OrderByClause) SelectStatement
LIMIT(limit int64) SelectStatement
OFFSET(offset int64) SelectStatement
FOR(lock RowLock) SelectStatement
@ -128,7 +128,7 @@ func (s *selectStatementImpl) WINDOW(name string) windowExpand {
return windowExpand{selectStatement: s}
}
func (s *selectStatementImpl) ORDER_BY(orderByClauses ...jet.OrderByClause) SelectStatement {
func (s *selectStatementImpl) ORDER_BY(orderByClauses ...OrderByClause) SelectStatement {
s.OrderBy.List = orderByClauses
return s
}