Added support for 'SELECT VALUE' statement

This commit is contained in:
Pijus Kamandulis
2024-02-13 21:22:55 +02:00
parent 9c56d01d27
commit e89f2e5611
7 changed files with 431 additions and 310 deletions

View File

@@ -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 {