mirror of
https://github.com/pikami/cosmium.git
synced 2025-12-19 17:00:37 +00:00
Added support for 'ORDER BY'
This commit is contained in:
@@ -25,12 +25,20 @@ const (
|
||||
SelectItemTypeArray
|
||||
)
|
||||
|
||||
type OrderDirection int
|
||||
|
||||
const (
|
||||
OrderDirectionAsc OrderDirection = iota
|
||||
OrderDirectionDesc
|
||||
)
|
||||
|
||||
type SelectStmt struct {
|
||||
SelectItems []SelectItem
|
||||
Table Table
|
||||
Filters interface{}
|
||||
Count int
|
||||
Parameters map[string]interface{}
|
||||
SelectItems []SelectItem
|
||||
Table Table
|
||||
Filters interface{}
|
||||
Count int
|
||||
Parameters map[string]interface{}
|
||||
OrderExpressions []OrderExpression
|
||||
}
|
||||
|
||||
type Table struct {
|
||||
@@ -60,3 +68,8 @@ type Constant struct {
|
||||
Type ConstantType
|
||||
Value interface{}
|
||||
}
|
||||
|
||||
type OrderExpression struct {
|
||||
SelectItem SelectItem
|
||||
Direction OrderDirection
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user