Added support for arithmetics inside queries

This commit is contained in:
Pijus Kamandulis
2025-05-30 00:15:55 +03:00
parent 11851297f5
commit b743e23ff9
7 changed files with 2700 additions and 1841 deletions

View File

@@ -35,6 +35,7 @@ const (
SelectItemTypeFunctionCall
SelectItemTypeSubQuery
SelectItemTypeExpression
SelectItemTypeBinaryExpression
)
type SelectItem struct {
@@ -65,6 +66,12 @@ type ComparisonExpression struct {
Operation string
}
type BinaryExpression struct {
Left interface{}
Right interface{}
Operation string
}
type ConstantType int
const (