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:
parent
fdde2ab9b4
commit
1c435f5c7f
7 changed files with 16 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue