mirror of
https://github.com/pikami/cosmium.git
synced 2025-12-19 17:00:37 +00:00
Added support for 'SELECT VALUE' statement
This commit is contained in:
@@ -16,19 +16,30 @@ const (
|
||||
ConstantTypeBoolean
|
||||
)
|
||||
|
||||
type SelectItemType int
|
||||
|
||||
const (
|
||||
SelectItemTypeField SelectItemType = iota
|
||||
SelectItemTypeObject
|
||||
SelectItemTypeArray
|
||||
)
|
||||
|
||||
type SelectStmt struct {
|
||||
Columns []FieldPath
|
||||
Table Table
|
||||
Filters interface{}
|
||||
SelectItems []SelectItem
|
||||
Table Table
|
||||
Filters interface{}
|
||||
}
|
||||
|
||||
type Table struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
type FieldPath struct {
|
||||
Alias string
|
||||
Path []string
|
||||
type SelectItem struct {
|
||||
Alias string
|
||||
Path []string
|
||||
SelectItems []SelectItem
|
||||
Type SelectItemType
|
||||
IsTopLevel bool
|
||||
}
|
||||
|
||||
type LogicalExpression struct {
|
||||
|
||||
Reference in New Issue
Block a user